-
Notifications
You must be signed in to change notification settings - Fork 1.4k
84 lines (79 loc) · 2.53 KB
/
POST_RELEASE.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
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 }}
env:
TAG: ${{ inputs.tag }}
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@v4
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
with:
tag: ${{ inputs.tag }}