Skip to content

Commit 2710379

Browse files
authored
Merge pull request #199 from ruby-go-gem/fix_permission
Fix release workflow
2 parents 3c18bf4 + 108c9cb commit 2710379

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- "v*"
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
publish:
1013
runs-on: ubuntu-latest
@@ -20,10 +23,19 @@ jobs:
2023
- name: Generate changelog
2124
run: |
2225
bundle exec rake changelog[,${TAG_NAME}] > /tmp/changelog.md
26+
cat /tmp/changelog.md
2327
env:
2428
TAG_NAME: ${{ github.ref_name }}
2529

2630
- name: Release
2731
uses: softprops/action-gh-release@v2
2832
with:
2933
body_path: /tmp/changelog.md
34+
35+
- name: Slack Notification (not success)
36+
uses: act10ns/slack@v2
37+
if: "! success()"
38+
continue-on-error: true
39+
with:
40+
status: ${{ job.status }}
41+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}

0 commit comments

Comments
 (0)