Issue #44 Fixed Updated email notification (#45) #11
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: Check and Deploy | |
on: | |
push: | |
branches: ['main'] | |
jobs: | |
deploy: | |
name: Check and Deploy | |
runs-on: ubuntu-latest | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ./.github/actions/check | |
- uses: superfly/[email protected] | |
with: | |
args: "deploy" | |
- if: success() | |
uses: slackapi/[email protected] | |
with: | |
payload: | | |
{ | |
"text": "deployed <https://github.com/${{ github.repository }}/commit/${{ github.sha}}|${{ github.sha }}>" | |
} | |
- if: failure() | |
uses: slackapi/[email protected] | |
with: | |
payload: | | |
{ | |
"text": "deploy failed! <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|inspect the job>" | |
} |