-
Notifications
You must be signed in to change notification settings - Fork 214
41 lines (36 loc) · 1.16 KB
/
finalize-release.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
41
# Triggered on a new release git tag pushed, starts the final steps of a release.
#
# Steps currently include
# 1. Updating master changelogs using JS script
name: Finalize Release
on:
workflow_dispatch:
push:
branches:
- 'release/*'
paths:
- '**/CHANGELOG.md'
jobs:
finalize:
name: Cherry-pick Changelogs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.IMJS_ADMIN_GH_TOKEN }}
ref: ${{ github.ref }} # checkouts the branch that triggered the workflow
fetch-depth: 0
- name: Set Git Config
run: |
git config --local user.email 38288322+imodeljs-admin@users.noreply.github.com
git config --local user.name imodeljs-admin
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Run update-changelogs.mjs
run: |
sudo npm install -g @microsoft/rush
npx zx@latest --install ./.github/workflows/automation-scripts/update-changelogs.mjs
# turn off the default behavior to fail fast. The script has its own error handling
shell: bash {0}