Skip to content

Commit f49b520

Browse files
authored
Update main.yml
1 parent caf1724 commit f49b520

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/main.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ jobs:
1717
git fetch origin
1818
git rev-list --count --left-right main...dev > diff.txt
1919
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 }}
2729
if: steps.get_diff.outputs.behind > '1'

0 commit comments

Comments
 (0)