4.9.6 #440
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
# 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 [email protected] | |
git config --local user.name imodeljs-admin | |
- 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} |