POST_RELEASE #81
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: POST_RELEASE | ||
on: | ||
workflow_call: | ||
inputs: | ||
tag: | ||
type: string | ||
description: 'The released tag' | ||
required: true | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
type: string | ||
description: 'The released tag' | ||
required: true | ||
jobs: | ||
post-release: | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
node-version: [ 20 ] | ||
runs-on: ${{ matrix.os }} | ||
outputs: | ||
STABLE_RELEASE: ${{ steps.is_stable.outputs.STABLE_RELEASE }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Wait for published | ||
env: | ||
PKG: 'bpmn-js@${{ inputs.tag }}' | ||
run: tasks/stages/await-published | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
- name: Check for stable release | ||
id: is_stable | ||
run: | | ||
if [[ ${{ inputs.tag }} =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] | ||
then echo "STABLE_RELEASE=true" >> $GITHUB_OUTPUT | ||
else echo "STABLE_RELEASE=false" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Update integration test | ||
env: | ||
BPMN_IO_TOKEN: ${{ secrets.BPMN_IO_TOKEN }} | ||
BPMN_IO_EMAIL: ${{ secrets.BPMN_IO_EMAIL }} | ||
BPMN_IO_USERNAME: ${{ secrets.BPMN_IO_USERNAME }} | ||
run: tasks/stages/update-integration-test | ||
- name: Update demo | ||
if: ${{ steps.is_stable.outputs.STABLE_RELEASE == 'true' }} | ||
env: | ||
BPMN_IO_TOKEN: ${{ secrets.BPMN_IO_TOKEN }} | ||
BPMN_IO_EMAIL: ${{ secrets.BPMN_IO_EMAIL }} | ||
BPMN_IO_USERNAME: ${{ secrets.BPMN_IO_USERNAME }} | ||
BPMN_IO_DEMO_ENDPOINT: ${{ secrets.BPMN_IO_DEMO_ENDPOINT }} | ||
run: tasks/stages/update-demo | ||
- name: Update examples | ||
if: ${{ steps.is_stable.outputs.STABLE_RELEASE == 'true' }} | ||
env: | ||
BPMN_IO_TOKEN: ${{ secrets.BPMN_IO_TOKEN }} | ||
BPMN_IO_EMAIL: ${{ secrets.BPMN_IO_EMAIL }} | ||
BPMN_IO_USERNAME: ${{ secrets.BPMN_IO_USERNAME }} | ||
run: tasks/stages/update-examples | ||
- name: Update website | ||
if: ${{ steps.is_stable.outputs.STABLE_RELEASE == 'true' }} | ||
env: | ||
BPMN_IO_TOKEN: ${{ secrets.BPMN_IO_TOKEN }} | ||
BPMN_IO_EMAIL: ${{ secrets.BPMN_IO_EMAIL }} | ||
BPMN_IO_USERNAME: ${{ secrets.BPMN_IO_USERNAME }} | ||
run: tasks/stages/update-website | ||
update-translations: | ||
needs: post-release | ||
secrets: inherit | ||
if: ${{ needs.post-release.outputs.STABLE_RELEASE == 'true' }} | ||
uses: ./.github/workflows/UPDATE_TRANSLATIONS.yml | ||
Check failure on line 79 in .github/workflows/POST_RELEASE.yml GitHub Actions / POST_RELEASEInvalid workflow file
Check failure on line 79 in .github/workflows/POST_RELEASE.yml GitHub Actions / POST_RELEASEInvalid workflow file
|