From 9548961ec9b621324fc3650dbee27eeeba6fb51e Mon Sep 17 00:00:00 2001 From: Elliot DeNolf Date: Thu, 12 Sep 2024 22:43:37 -0400 Subject: [PATCH] ci: post-release workflow, comment on releases --- .github/workflows/post-release.yml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/post-release.yml b/.github/workflows/post-release.yml index c3ad2eedf9..e809a667dc 100644 --- a/.github/workflows/post-release.yml +++ b/.github/workflows/post-release.yml @@ -1,11 +1,31 @@ name: post-release on: + release: + types: + - published workflow_dispatch: jobs: - dummy: + post_release: runs-on: ubuntu-latest steps: - - name: Dummy step - run: echo "Dummy job to trigger post-release workflow on beta branch" + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + # Only needed if debugging on a branch other than default + # ref: ${{ github.event.release.target_commitish || github.ref }} + - run: echo "npm_version=$(npm pkg get version | tr -d '"')" >> "$GITHUB_ENV" + - uses: ./.github/actions/release-commenter + continue-on-error: true + env: + ACTIONS_STEP_DEBUG: true + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + tag-filter: 'v\d' + + # Change to blank to disable commenting + # comment-template: '' + + comment-template: | + 🚀 This is included in version {release_link}