File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,13 @@ jobs:
17
17
git fetch origin
18
18
git rev-list --count --left-right main...dev > diff.txt
19
19
echo "::set-output name=behind::$(cat diff.txt | cut -d' ' -f1)"
20
- - name : Send Discord notification
21
- uses : hecholar/action-discord@v3
22
- with :
23
- webhook_url : ${{ secrets.DISCORD_WEBHOOK_URL }}
24
- message : |
25
- main ブランチが dev ブランチから ${{ steps.get_diff.outputs.behind }} コミット遅れています。
26
- すぐに確認してください。
20
+ - name : Notify Discord
21
+ run : |
22
+ curl -H "Content-Type: application/json" \
23
+ -X POST \
24
+ -d '{
25
+ "content": "main ブランチが dev ブランチから ${{ steps.get_diff.outputs.behind }} コミット遅れています。\
26
+ すぐに確認してください。"
27
+ }' \
28
+ ${{ secrets.DISCORD_WEBHOOK_URL }}
27
29
if : steps.get_diff.outputs.behind > '1'
You can’t perform that action at this time.
0 commit comments