Skip to content

Commit 869bb07

Browse files
flakey5MattIPv4
andauthored
actions: alert on update link failure & fix deploy action (#355)
Signed-off-by: flakey5 <[email protected]> Co-authored-by: Matt Cowley <[email protected]>
1 parent 74975c5 commit 869bb07

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,11 @@ jobs:
4545

4646
- name: Alert on Failure
4747
if: failure() && github.repository == 'nodejs/release-cloudflare-worker'
48-
runs-on: ubuntu-latest
49-
steps:
50-
- name: Slack Notification
51-
uses: rtCamp/action-slack-notify@c33737706dea87cd7784c687dadc9adf1be59990 # 2.3.2
52-
env:
53-
SLACK_COLOR: '#DE512A'
54-
SLACK_ICON: https://github.com/nodejs.png?size=48
55-
SLACK_TITLE: Deployment failed (${{ github.ref }})
56-
SLACK_MESSAGE: |
57-
A deployment of the Release Worker has failed.
58-
SLACK_USERNAME: nodejs-bot
59-
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
60-
48+
uses: rtCamp/action-slack-notify@c33737706dea87cd7784c687dadc9adf1be59990 # 2.3.2
49+
env:
50+
SLACK_COLOR: '#DE512A'
51+
SLACK_ICON: https://github.com/nodejs.png?size=48
52+
SLACK_TITLE: Deployment failed (${{ github.ref }})
53+
SLACK_MESSAGE: A deployment of the Release Worker has failed.
54+
SLACK_USERNAME: nodejs-bot
55+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

.github/workflows/update-links.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,14 @@ jobs:
6363
env:
6464
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
6565

66-
- name: Deploy to Production
67-
if: steps.git_auto_commit.outputs.changes_detected == 'true'
68-
run: |
69-
gh workflow run deploy.yml
66+
- name: Alert on Failure
67+
if: failure() && github.repository == 'nodejs/release-cloudflare-worker'
68+
uses: rtCamp/action-slack-notify@c33737706dea87cd7784c687dadc9adf1be59990 # 2.3.2
7069
env:
71-
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
70+
SLACK_COLOR: '#DE512A'
71+
SLACK_ICON: https://github.com/nodejs.png?size=48
72+
SLACK_TITLE: Update links failed (${{ github.ref }})
73+
SLACK_MESSAGE: The `update-links.yml` action has failed.
74+
SLACK_USERNAME: nodejs-bot
75+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
7276

0 commit comments

Comments
 (0)