Merge pull request #530 from weseek/dependabot/npm_and_yarn/eslint-8.… #202
This file contains 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 | |
update-release-draft: | |
runs-on: ubuntu-latest | |
outputs: | |
RELEASE_VERSION: ${{ steps.package-json.outputs.packageVersion }} | |
RELEASE_DRAFT_BODY: ${{ steps.release-drafter.outputs.body }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Retrieve information from package.json | |
uses: myrotvorets/[email protected] | |
id: package-json | |
# Drafts your next Release notes as Pull Requests are merged into "master" | |
- uses: release-drafter/release-drafter@v5 | |
id: release-drafter | |
with: | |
name: v${{ steps.package-json.outputs.packageVersion }} | |
tag: v${{ steps.package-json.outputs.packageVersion }} | |
version: ${{ steps.package-json.outputs.packageVersion }} | |
disable-autolabeler: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# Refs: https://github.com/bakunyo/git-pr-release-action | |
update-release-pr: | |
needs: update-release-draft | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
# See: https://github.com/bakunyo/git-pr-release-action/issues/15, https://github.com/samunohito/SimpleVolumeMixer/commit/2059044c71236509466cf9b1bb2d56d515274938 | |
- name: Create/Update Pull Request | |
uses: bakunyo/git-pr-release-action@281e1fe424fac01f3992542266805e4202a22fe0 | |
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.update-release-draft.outputs.RELEASE_VERSION }} | |
GIT_PR_RELEASE_BODY: ${{ needs.update-release-draft.outputs.RELEASE_DRAFT_BODY }} |