ci: release 1.22.2 #604
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: release | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- "release-**" | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: googleapis/release-please-action@v4 | |
id: release | |
with: | |
token: ${{ secrets.PAT_TOKEN }} | |
# optional. customize path to release-please-config.json | |
config-file: release-please-config.json | |
# optional. customize path to .release-please-manifest.json | |
manifest-file: .release-please-manifest.json | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Workaround for https://github.com/googleapis/release-please/issues/922 | |
if: ${{ steps.release.outputs.pr != '' }} | |
run: | | |
echo "Closing and reopening PR to trigger checks" | |
gh pr close ${{ fromJSON(steps.release.outputs.pr).number }} || true | |
gh pr reopen ${{ fromJSON(steps.release.outputs.pr).number }} || true | |
gh pr merge --auto --merge ${{ fromJSON(steps.release.outputs.pr).number }} || true | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} |