Skip to content

Commit c64631a

Browse files
fix(ci): invalid gh template (#320)
# Motivation <!-- Why is this change necessary? --> # Content <!-- Please include a summary of the change --> # Testing <!-- How was the change tested? --> # Please check the following before marking your PR as ready for review - [ ] I have added tests for my changes - [ ] I have updated the documentation or added new documentation as needed
1 parent 0c2f9a0 commit c64631a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ jobs:
7070
needs: build
7171
runs-on: ubuntu-latest
7272
environment: release
73+
permissions:
74+
contents: write # grants permission to create a release on github
7375
steps:
7476
- uses: actions/checkout@v4
7577

@@ -103,12 +105,12 @@ jobs:
103105
method: chat.postMessage
104106
token: ${{ secrets.SLACK_BOT_TOKEN }}
105107
payload: |
106-
username: ${{ job.status == 'success' && format('Released <{0}|{1}>', steps.github-release.outputs.url, github.ref_name) || format('Failed to release {0}', github.ref_name) }}
108+
username: ${{ job.status == 'success' && format('Released {0}', github.ref_name) || format('Failed to release {0}', github.ref_name) }}
107109
channel: "#release"
108110
icon_emoji: "${{ job.status == 'success' && ':white_check_mark:' || ':x:' }}"
109111
text: |
110112
Actor: `${{ github.triggering_actor }}`
111113
Author: `${{ github.event.head_commit.author.username }}`
112-
${{ format('Commit: <{0}/{1}/commit/{2}|{1}@{2[:7]}>', github.server_url, github.repository, github.sha) || ''}}
114+
${{ format('Commit: <{0}/{1}/commit/{2}|{1}@{2}>', github.server_url, github.repository, github.sha) || ''}}
113115
${{ format('Description: `{0}`', github.event.head_commit.message) || ''}}
114116
View <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|GHA logs>

0 commit comments

Comments
 (0)