Skip to content

Commit e4472dc

Browse files
authored
FEAT: automatically merge Dependabot pull requests
1 parent e4afa8b commit e4472dc

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/deploy.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
uses: slackapi/[email protected]
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 }}

0 commit comments

Comments
 (0)