File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ module.exports = [
3030 'rachmari/labeler@832d42ec5523f3c6d46e8168de71cd54363e3e2e' ,
3131 'repo-sync/github-sync@3832fe8e2be32372e1b3970bbae8e7079edeec88' ,
3232 'repo-sync/pull-request@33777245b1aace1a58c87a29c90321aa7a74bd7d' ,
33- 'rtCamp/action- slack-notify@e17352feaf9aee300bf0ebc1dfbf467d80438815 ' ,
33+ 'someimportantcompany/github-actions- slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd ' ,
3434 'tjenkinson/gh-action-auto-merge-dependency-updates@cee2ac0' ,
3535 'EndBug/add-and-commit@9358097a71ad9fb9e2f9624c6098c89193d83575'
3636]
Original file line number Diff line number Diff line change @@ -14,11 +14,10 @@ jobs:
1414 if : github.repository == 'github/docs-internal'
1515 steps :
1616 - name : Send Slack notification if repo is frozen
17+ uses : someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd
1718 if : ${{ env.FREEZE == 'true' }}
18- uses : rtCamp/action-slack-notify@e17352feaf9aee300bf0ebc1dfbf467d80438815
19- env :
20- SLACK_WEBHOOK : ${{ secrets.DOCS_ALERTS_SLACK_WEBHOOK }}
21- SLACK_USERNAME : docs-repo-sync
22- SLACK_ICON_EMOJI : ' :freezing_face:'
23- SLACK_COLOR : ' #51A0D5' # Carolina Blue
24- SLACK_MESSAGE : All repo-sync runs will fail for ${{ github.repository }} because the repo is currently frozen!
19+ with :
20+ channel : ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
21+ bot-token : ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
22+ color : info
23+ text : All repo-sync runs will fail for ${{ github.repository }} because the repo is currently frozen!
Original file line number Diff line number Diff line change @@ -45,11 +45,10 @@ jobs:
4545 }
4646 })
4747 - name : Send Slack notification if workflow fails
48- uses : rtCamp/action-slack-notify@e17352feaf9aee300bf0ebc1dfbf467d80438815
49- if : ${{ failure() }}
50- env :
51- SLACK_WEBHOOK : ${{ secrets.DOCS_ALERTS_SLACK_WEBHOOK }}
52- SLACK_USERNAME : docs-repo-sync
53- SLACK_ICON_EMOJI : ' :ohno:'
54- SLACK_COLOR : ' #B90E0A' # Crimson
55- SLACK_MESSAGE : Repo sync appears to be stalled for ${{github.repository}}. See https://github.com/${{github.repository}}/pulls?q=is%3Apr+is%3Aopen+repo+sync
48+ uses : someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd
49+ if : failure()
50+ with :
51+ channel : ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
52+ bot-token : ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
53+ color : failure
54+ text : Repo sync appears to be stalled for ${{github.repository}}. See https://github.com/${{github.repository}}/pulls?q=is%3Apr+is%3Aopen+repo+sync
Original file line number Diff line number Diff line change @@ -70,11 +70,10 @@ jobs:
7070 number : ${{ steps.find-pull-request.outputs.number }}
7171
7272 - name : Send Slack notification if workflow fails
73- uses : rtCamp/action-slack-notify@e17352feaf9aee300bf0ebc1dfbf467d80438815
74- if : ${{ failure() }}
75- env :
76- SLACK_WEBHOOK : ${{ secrets.DOCS_ALERTS_SLACK_WEBHOOK }}
77- SLACK_USERNAME : docs-repo-sync
78- SLACK_ICON_EMOJI : ' :ohno:'
79- SLACK_COLOR : ' #B90E0A' # Crimson
80- SLACK_MESSAGE : The last repo-sync run for ${{github.repository}} failed. See https://github.com/${{github.repository}}/actions?query=workflow%3A%22Repo+Sync%22
73+ uses : someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd
74+ if : failure()
75+ with :
76+ channel : ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
77+ bot-token : ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
78+ color : failure
79+ text : The last repo-sync run for ${{github.repository}} failed. See https://github.com/${{github.repository}}/actions?query=workflow%3A%22Repo+Sync%22
Original file line number Diff line number Diff line change 3333 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3434 run : npm run sync-search
3535 - name : Send slack notification if workflow run fails
36- uses : rtCamp/action- slack-notify@e17352feaf9aee300bf0ebc1dfbf467d80438815
36+ uses : someimportantcompany/github-actions- slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd
3737 if : failure()
38- env :
39- SLACK_WEBHOOK : ${{ secrets.DOCS_ALERTS_SLACK_WEBHOOK }}
40- SLACK_MESSAGE : The last Algolia workflow run for ${{github.repository}} failed. Search actions for `workflow:Algolia`
38+ with :
39+ channel : ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
40+ bot-token : ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
41+ color : failure
42+ text : The last Algolia workflow run for ${{github.repository}} failed. Search actions for `workflow:Algolia`
You can’t perform that action at this time.
0 commit comments