fix: fix tests #204
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| concurrency: | |
| group: release-please-main | |
| cancel-in-progress: false | |
| permissions: | |
| actions: write | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| release-please: | |
| name: release-please | |
| runs-on: ubuntu-24.04 | |
| env: | |
| HAS_RELEASE_PLEASE_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN != '' }} | |
| steps: | |
| - id: release | |
| uses: googleapis/release-please-action@v4 | |
| with: | |
| config-file: release-please-config.json | |
| manifest-file: .release-please-manifest.json | |
| token: ${{ secrets.RELEASE_PLEASE_TOKEN || github.token }} | |
| - name: Trigger publish-release for fallback token releases | |
| if: ${{ steps.release.outputs.release_created == 'true' && env.HAS_RELEASE_PLEASE_TOKEN != 'true' }} | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| GH_REPO: ${{ github.repository }} | |
| RELEASE_TAG: ${{ steps.release.outputs.tag_name }} | |
| run: | | |
| if [ -z "$RELEASE_TAG" ]; then | |
| echo "release-please did not output a tag name." >&2 | |
| exit 1 | |
| fi | |
| gh workflow run publish-release.yml --ref main -f release_tag="$RELEASE_TAG" |