Skip to content

Commit 6c2754c

Browse files
authored
use official ruby action (#17844)
1 parent f51e2d5 commit 6c2754c

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/allowed-actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = [
99
'actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9', //actions/script@v3.0.0
1010
'actions/labeler@5f867a63be70efff62b767459b009290364495eb', //actions/labeler@v2.2.0
1111
'actions/setup-node@c46424eee26de4078d34105d3de3cc4992202b1e', //actions/setup-node@v2.1.4
12-
'actions/setup-ruby@5f29a1cd8dfebf420691c4c9a0e832e2fae5a526', //actions/setup-ruby@v1.1.2
12+
'ruby/setup-ruby@fdcfbcf14ec9672f6f615cb9589a1bc5dd69d262', //ruby/setup-ruby@vv1.64.1
1313
'actions/stale@af4072615903a8b031f986d25b1ae3bf45ec44d4', //actions/stale@v3.0.13
1414
'crowdin/github-action@fd9429dd63d6c0f8a8cb4b93ad8076990bd6e688',
1515
'crykn/copy_folder_to_another_repo_action@0282e8b9fef06de92ddcae9fe6cb44df6226646c',

.github/workflows/update-graphql-files.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Checkout
2727
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
2828
- name: Set up Ruby
29-
uses: actions/setup-ruby@5f29a1cd8dfebf420691c4c9a0e832e2fae5a526
29+
uses: ruby/setup-ruby@fdcfbcf14ec9672f6f615cb9589a1bc5dd69d262
3030
with:
3131
ruby-version: '2.4'
3232
- name: Install Ruby dependencies
@@ -66,5 +66,13 @@ jobs:
6666
name: Approve
6767
uses: juliangruber/approve-pull-request-action@c530832d4d346c597332e20e03605aa94fa150a8
6868
with:
69-
github-token: ${{ secrets.GITHUB_TOKEN }}
69+
github-token: ${{ secrets.DOCUBOT_REPO_PAT }}
7070
number: ${{ steps.create-pull-request.outputs.pull-request-number }}
71+
- name: Send Slack notification if workflow fails
72+
uses: someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd
73+
if: failure()
74+
with:
75+
channel: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
76+
bot-token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
77+
color: failure
78+
text: The last update-graphql-files run for ${{github.repository}} failed. See https://github.com/github/${{github.repository}}/actions/workflows/update-graphql-files.yml

0 commit comments

Comments
 (0)