Skip to content

Commit

Permalink
Post Slack message when complete
Browse files Browse the repository at this point in the history
  • Loading branch information
arcatdmz committed Jun 26, 2024
1 parent d98df3f commit 01d2eb8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,13 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Post to a Slack channel
# It's possible to post messages only when the build fails (or succeeds)
# if: failure()
uses: slackapi/[email protected]
with:
channel-id: ${{ env.SLACK_CHANNEL_CI }}
slack-message: |
New PDF file was generated / GitHub Actions URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 comments on commit 01d2eb8

Please sign in to comment.