Create Pre-release #651
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- 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@c0fa39de055c31c2b9abb96fd1030260c6ed34ea # v7.2.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@c0fa39de055c31c2b9abb96fd1030260c6ed34ea # v7.2.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 |