-
Notifications
You must be signed in to change notification settings - Fork 43
40 lines (34 loc) · 1.47 KB
/
create-github-prerelease.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Create Pre-release
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+'
jobs:
create-prerelease:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Resolve activiti version
id: resolve-versions
run: |
ACTIVITI_VERSION=$(yq -p=xml e '.project.properties."activiti.version"' activiti-cloud-api/pom.xml)
ACTIVITI_CLOUD_VERSION=$(yq -p=xml e '.project.version' pom.xml)
echo "activiti-tag=$ACTIVITI_VERSION" >> $GITHUB_OUTPUT
echo "activiti-cloud-tag=$ACTIVITI_CLOUD_VERSION" >> $GITHUB_OUTPUT
- run: touch release.yaml
- uses: Alfresco/alfresco-build-tools/.github/actions/update-project-base-tag@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.0
with:
release-descriptor: release.yaml
project: activiti
tag: ${{ steps.resolve-versions.outputs.activiti-tag }}
- uses: Alfresco/alfresco-build-tools/.github/actions/update-project-base-tag@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.0
with:
release-descriptor: release.yaml
project: activitiCloud
tag: ${{ steps.resolve-versions.outputs.activiti-cloud-tag }}
- name: Create prerelease
env:
TAG: ${{ github.ref_name }}
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
run: |
gh release create $TAG 'release.yaml#Release Descriptor' --prerelease -t $TAG