@@ -83,16 +83,18 @@ jobs:
8383 git reset --hard ${{ github.event.before }}
8484 git push origin ${{ github.ref }} --force-with-lease
8585 echo "link=https://github.com/${{ github.repository }}/commits/${{ github.ref }}" >> $GITHUB_OUTPUT
86- echo "short_msg='${{ toJSON(github.event.after) }}' was removed!" >> $GITHUB_OUTPUT
87- echo "xtra_msg= (${{ toJSON(github.event.head_commit.message) }})" >> $GITHUB_OUTPUT
88- echo "msg_code=${{ github.event.after }}" >> $GITHUB_OUTPUT
86+ echo "short_msg=push denied, reset to '${{ toJSON(github.event.before) }}'!" >> $GITHUB_OUTPUT
87+ echo "action_type=reverted to" >> $GITHUB_OUTPUT
88+ echo "msg_code=${{ github.event.before }}" >> $GITHUB_OUTPUT
89+ echo "xtra_msg=('${{ toJSON(github.event.head_commit.message) }}' denied)" >> $GITHUB_OUTPUT
8990 else
9091 echo "Removing branch ${{ github.ref }} as it contains licenses"
9192 git push origin --delete ${{ github.ref }}
9293 echo "link=https://github.com/${{ github.repository }}/branches" >> $GITHUB_OUTPUT
9394 echo "short_msg='${{ github.ref }}' was removed!" >> $GITHUB_OUTPUT
94- echo "xtra_msg= " >> $GITHUB_OUTPUT
95+ echo "action_type=removed " >> $GITHUB_OUTPUT
9596 echo "msg_code=${{ github.ref }}" >> $GITHUB_OUTPUT
97+ echo "xtra_msg=" >> $GITHUB_OUTPUT
9698 fi
9799
98100 - name : Find correspondences
@@ -133,7 +135,7 @@ jobs:
133135 "type": "section",
134136 "text": {
135137 "type": "mrkdwn",
136- "text": "${{ steps.push-type.outputs.push_type }} removed: `${{ steps.remove-license.outputs.msg_code }}`${{ steps.remove-license.outputs.xtra_msg }}"
138+ "text": "${{ steps.push-type.outputs.action_type }} ${{ steps.push-type.outputs.push_type}} `${{ steps.remove-license.outputs.msg_code }}` ${{ steps.remove-license.outputs.xtra_msg }}"
137139 }
138140 },
139141 {
0 commit comments