File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy
2+ on :
3+ push :
4+ branches :
5+ - main
6+ jobs :
7+ stable :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v3
11+ - uses : superfly/flyctl-actions/setup-flyctl@master
12+ - run : cd stable && flyctl deploy --remote-only
13+ env :
14+ FLY_API_TOKEN : ${{ secrets.FLY_API_TOKEN_STABLE }}
15+ - if : failure()
16+ 17+ with :
18+ channel-id : alerts
19+ payload : |
20+ {
21+ "text": "Deployment of `${{ github.event.repository.name }}` failed",
22+ "blocks": [
23+ {
24+ "type": "section",
25+ "text": {
26+ "type": "mrkdwn",
27+ "text": ":warning: *<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|Deployment of `${{ github.event.repository.name }}` failed>*"
28+ }
29+ }
30+ ]
31+ }
32+ env :
33+ SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
You can’t perform that action at this time.
0 commit comments