Merge pull request #1297 from weseek/dependabot/npm_and_yarn/turbo-2.7.2 #738
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 - Update draft | |
| on: | |
| push: | |
| branches: | |
| - master | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| jobs: | |
| # Refs: https://github.com/release-drafter/release-drafter | |
| release-update_draft: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| RELEASE_VERSION: ${{ steps.package-json.outputs.full }} | |
| RELEASE_DRAFT_BODY: ${{ steps.release-drafter.outputs.body }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Retrieve information from package.json | |
| uses: xile611/[email protected] | |
| id: package-json | |
| # Drafts your next Release notes as Pull Requests are merged into "master" | |
| - uses: release-drafter/release-drafter@v6 | |
| id: release-drafter | |
| with: | |
| name: v${{ steps.package-json.outputs.full }} | |
| tag: v${{ steps.package-json.outputs.full }} | |
| version: ${{ steps.package-json.outputs.full }} | |
| disable-autolabeler: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # Refs: https://github.com/bakunyo/git-pr-release-action | |
| update-release-pr: | |
| needs: release-update_draft | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Create/Update Pull Request | |
| uses: bakunyo/[email protected] | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GIT_PR_RELEASE_BRANCH_PRODUCTION: stable | |
| GIT_PR_RELEASE_BRANCH_STAGING: master | |
| GIT_PR_RELEASE_TEMPLATE: .github/git-pr-release-template.erb | |
| GIT_PR_RELEASE_TITLE: Release v${{ needs.release-update_draft.outputs.RELEASE_VERSION }} | |
| GIT_PR_RELEASE_BODY: ${{ needs.release-update_draft.outputs.RELEASE_DRAFT_BODY }} |