Discord Notification #153
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Discord Notification | |
on: | |
workflow_run: | |
workflows: [pages-build-deployment] | |
types: | |
- completed | |
jobs: | |
notify: | |
runs-on: ubuntu-22.04 | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- name: Discord notification of deployment | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_DEPLOY_GITHUB_WEBHOOK }} | |
uses: Ilshidur/[email protected] | |
with: | |
args: 'PyLadies website has been deployed. Changes to the website content are on https://github.com/${{ github.repository}}/commit/${{ github.event.workflow_run.head_sha }}. This latest commit in the default branch causing the deploy was https://github.com/${{ github.repository}}/commit/${{ github.sha }}.' |