Skip to content

Commit d79b777

Browse files
authored
Merge pull request #9 from devserkan/test-discord-notify-success
implement 11.18 Build success/failure notification action
2 parents 0b7f560 + c883c9c commit d79b777

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/pipeline.yml

+16
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,22 @@ jobs:
3232
run: flyctl deploy --remote-only
3333
env:
3434
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
35+
- name: Notify Discord on success
36+
if: ${{ success() && env.SHOULD_DEPLOY == 'true' }}
37+
uses: rjstone/discord-webhook-notify@v1
38+
with:
39+
severity: info
40+
details: Deployment succeeded!
41+
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
42+
username: 'devserkan'
43+
- name: Notify Discord on failure
44+
if: ${{ failure() && env.SHOULD_DEPLOY == 'true' }}
45+
uses: rjstone/discord-webhook-notify@v1
46+
with:
47+
severity: error
48+
details: Deployment failed!
49+
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
50+
username: 'devserkan'
3551
tag_release:
3652
if: ${{ github.event_name == 'push' && !contains(join(github.event.commits.*.message), '#skip') }}
3753
needs: [simple_deployment_pipeline]

app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const app = express()
55
const PORT = process.env.PORT || 5001
66

77
app.get('/version', (req, res) => {
8-
res.send('13')
8+
res.send('14')
99
})
1010

1111
app.get('/health', (req, res) => {

0 commit comments

Comments
 (0)