fix(ci): shell-safe release-please output debug (env pattern, no shel… #3
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
| name: Release Please (CD) | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| release-please: | |
| name: Draft release PR (conventional commits → version bump) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 3 | |
| steps: | |
| - uses: googleapis/release-please-action@v4 | |
| id: release | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| release-type: simple | |
| package-name: preview-forge | |
| # The manifests we keep in version-parity with the tag. | |
| # release-please rewrites these when opening the Release PR. | |
| extra-files: | | |
| plugins/preview-forge/.claude-plugin/plugin.json | |
| .claude-plugin/marketplace.json | |
| - name: Show release-please output | |
| if: always() | |
| env: | |
| RP_RELEASE_CREATED: ${{ steps.release.outputs.release_created }} | |
| RP_TAG_NAME: ${{ steps.release.outputs.tag_name }} | |
| RP_PR_NUMBER: ${{ steps.release.outputs.pr }} | |
| run: | | |
| echo "release_created: $RP_RELEASE_CREATED" | |
| echo "tag_name: $RP_TAG_NAME" | |
| # pr output is a JSON blob; don't interpolate into shell. | |
| # Just show whether it exists. | |
| if [[ -n "$RP_PR_NUMBER" ]]; then | |
| echo "release PR: opened (see 'Pull requests' tab)" | |
| else | |
| echo "release PR: none" | |
| fi |