Skip to content

Commit

Permalink
Add 'Deployment notification' workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yyh-gl committed Dec 31, 2024
1 parent 4976856 commit 1792ad6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/deploy_notification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Deployment notification

on:
workflow_run:
workflows: ["pages build and deployment"]
types: [completed]

jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Notify
run: |
curl -X POST \
-H 'Content-type: application/json' \
-d "{
\"text\": \"GitHub Pages のビルド&デプロイが完了しました。\nワークフロー名: ${{ github.workflow }}\nリポジトリ: ${{ github.repository }}\nステータス: ${{ job.status }}\"
}" ${{ secrets.SLACK_WEBHOOK_URL_TO_50 }}

0 comments on commit 1792ad6

Please sign in to comment.