fix(ci): Add job outputs for update-cli composite action #1503
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
| name: Update Dependencies | |
| on: | |
| # Run every day. | |
| schedule: | |
| - cron: "0 3 * * *" | |
| # And on every PR merge so we get the updated dependencies ASAP, and to make sure the changelog doesn't conflict. | |
| push: | |
| branches: | |
| - main | |
| - fix-ci | |
| workflow_dispatch: | |
| permissions: | |
| contents: write # To modify files and create commits | |
| pull-requests: write # To create and update pull requests | |
| actions: write # To cancel previous workflow runs | |
| jobs: | |
| update-cli: | |
| name: Update CLI | |
| runs-on: ubuntu-latest | |
| outputs: | |
| originalTag: ${{ steps.updater.outputs.originalTag }} | |
| latestTag: ${{ steps.updater.outputs.latestTag }} | |
| prBranch: ${{ steps.updater.outputs.prBranch }} | |
| steps: | |
| - id: updater | |
| uses: getsentry/github-workflows/updater@95603f4efe938315ff0dd427a1f2bb40b1889a92 # v3 | |
| with: | |
| path: script/sentry-cli.properties | |
| name: CLI | |
| api-token: ${{ secrets.CI_DEPLOY_KEY }} | |
| update-binaries: | |
| name: Update Binaries | |
| runs-on: ubuntu-latest | |
| needs: update-cli | |
| if: needs.update-cli.outputs.originalTag != needs.update-cli.outputs.latestTag | |
| steps: | |
| - name: Checkout PR branch | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| ref: ${{ needs.update-cli.outputs.prBranch }} | |
| - name: Download latest binaries. | |
| run: script/sentry-cli-download.sh | |
| - name: Commit latest binaries. | |
| uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0 | |
| with: | |
| branch: ${{ needs.update-cli.outputs.prBranch }} | |
| commit_message: bump bundled binaries |