Release: Please #42
Workflow file for this run
This file contains hidden or 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
| # Runs release-please to create/update a PR with version bump and changelog. | |
| # Triggered only by workflow_dispatch (from release-cut.yml). | |
| # Does NOT auto-run on push to preserve manual changelog edits after cherry-picks. | |
| name: "Release: Please" | |
| on: | |
| # Only run via workflow_dispatch (triggered by release-cut.yml) | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| release-please: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check if release/candidate still exists | |
| id: check | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| if gh api repos/${{ github.repository }}/branches/release/candidate --silent 2>/dev/null; then | |
| echo "exists=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "release/candidate branch no longer exists, skipping" | |
| echo "exists=false" >> $GITHUB_OUTPUT | |
| fi | |
| - uses: actions/checkout@v6 | |
| if: steps.check.outputs.exists == 'true' | |
| with: | |
| ref: release/candidate | |
| - uses: googleapis/release-please-action@v4 | |
| if: steps.check.outputs.exists == 'true' | |
| with: | |
| token: ${{ secrets.RELEASE_PAT }} | |
| config-file: .github/release-please-config.json | |
| manifest-file: .github/.release-please-manifest.json | |
| target-branch: release/candidate |