We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent caf1724 commit f49b520Copy full SHA for f49b520
.github/workflows/main.yml
@@ -17,11 +17,13 @@ jobs:
17
git fetch origin
18
git rev-list --count --left-right main...dev > diff.txt
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
- すぐに確認してください。
+ - name: Notify Discord
+ run: |
+ curl -H "Content-Type: application/json" \
+ -X POST \
+ -d '{
+ "content": "main ブランチが dev ブランチから ${{ steps.get_diff.outputs.behind }} コミット遅れています。\
+ すぐに確認してください。"
27
+ }' \
28
+ ${{ secrets.DISCORD_WEBHOOK_URL }}
29
if: steps.get_diff.outputs.behind > '1'
0 commit comments