diff options
author | Debadree Chatterjee <debadree333@gmail.com> | 2023-04-01 15:15:05 +0530 |
---|---|---|
committer | Node.js GitHub Bot <github-bot@iojs.org> | 2023-04-03 07:19:20 +0000 |
commit | 81bb1b053bc6e50bcd262f62a0aaaab9cce9566c (patch) | |
tree | a3c53015e75cf63d6a491ae44f1d171cdcb36c27 /.github/workflows | |
parent | 1265eae09bc4695359aa97ac41dc9ff7c9e62127 (diff) | |
download | node-new-81bb1b053bc6e50bcd262f62a0aaaab9cce9566c.tar.gz |
tools: use ref_name to get branch pushed on
PR-URL: https://github.com/nodejs/node/pull/47358
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/notify-on-push.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/notify-on-push.yml b/.github/workflows/notify-on-push.yml index 3fc40d2f18..d189998452 100644 --- a/.github/workflows/notify-on-push.yml +++ b/.github/workflows/notify-on-push.yml @@ -20,7 +20,7 @@ jobs: SLACK_ICON: https://github.com/nodejs.png?size=48 SLACK_TITLE: ${{ github.actor }} force-pushed to ${{ github.ref }} SLACK_MESSAGE: | - @here A commit was force-pushed to <https://github.com/${{ github.repository }}/tree/${{ github.repository.default_branch }}|${{ github.repository }}@${{ github.repository.default_branch }}> by <https://github.com/${{ github.actor }}|${{ github.actor }}> + @here A commit was force-pushed to <https://github.com/${{ github.repository }}/tree/${{ github.ref_name }}|${{ github.repository }}@${{ github.ref_name }}> by <https://github.com/${{ github.actor }}|${{ github.actor }}> Before: <https://github.com/${{ github.repository }}/commit/${{ github.event.before }}|${{ github.event.before }}> After: <https://github.com/${{ github.repository }}/commit/${{ github.event.after }}|${{ github.event.after }}> @@ -62,7 +62,7 @@ jobs: SLACK_ICON: https://github.com/nodejs.png?size=48 SLACK_TITLE: Invalid commit was pushed to ${{ github.repository.default_branch }} SLACK_MESSAGE: | - @here A commit lacking the expected metadata was pushed to <https://github.com/${{ github.repository }}/tree/${{ github.repository.default_branch }}|${{ github.repository }}@${{ github.repository.default_branch }}> by <https://github.com/${{ github.actor }}|${{ github.actor }}>. + @here A commit lacking the expected metadata was pushed to <https://github.com/${{ github.repository }}/tree/${{ github.ref_name }}|${{ github.repository }}@${{ github.ref_name }}> by <https://github.com/${{ github.actor }}|${{ github.actor }}>. Before: <https://github.com/${{ github.repository }}/commit/${{ github.event.before }}|${{ github.event.before }}> After: <https://github.com/${{ github.repository }}/commit/${{ github.event.after }}|${{ github.event.after }}> |