Skip to content

POST_RELEASE

POST_RELEASE #81

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / POST_RELEASE

Invalid workflow file

error parsing called workflow ".github/workflows/POST_RELEASE.yml" -> "./.github/workflows/UPDATE_TRANSLATIONS.yml" : workflow was not found. See https://docs.github.com/actions/learn-github-actions/reusing-workflows#access-to-reusable-workflows for more information.

Check failure on line 79 in .github/workflows/POST_RELEASE.yml

View workflow run for this annotation

GitHub Actions / POST_RELEASE

Invalid workflow file

error parsing called workflow ".github/workflows/POST_RELEASE.yml" -> "./.github/workflows/UPDATE_TRANSLATIONS.yml" : workflow was not found. See https://docs.github.com/actions/learn-github-actions/reusing-workflows#access-to-reusable-workflows for more information.