Skip to content

Commit e1fd471

Browse files
authored
Merge branch 'main' into add-anchors-to-landing-layouts
2 parents 8b52142 + 141c638 commit e1fd471

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/enterprise-dates.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,19 @@ jobs:
3030
run: |
3131
echo 'The repo is currently frozen! Exiting this workflow.'
3232
exit 1 # prevents further steps from running
33+
34+
- name: Checkout repository code
35+
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
36+
37+
- name: Install Node.js dependencies
38+
run: npm ci
39+
3340
- name: Run script/update-enterprise-dates.js
3441
run: |
3542
script/update-enterprise-dates.js
3643
env:
3744
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
3846
- name: Create pull request
3947
id: create-pull-request
4048
uses: peter-evans/create-pull-request@8c603dbb04b917a9fc2dd991dc54fef54b640b43
@@ -50,23 +58,26 @@ jobs:
5058
labels: automerge,autoupdate
5159
branch: enterprise-server-dates-update
5260
delete-branch: true
61+
5362
- if: ${{ failure() }}
5463
name: Delete remote branch (if previous steps failed)
5564
uses: dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911
5665
with:
5766
github_token: ${{ secrets.GITHUB_TOKEN }}
5867
branches: enterprise-server-dates-update
68+
5969
- if: ${{ steps.create-pull-request.outputs.pull-request-number }}
6070
name: Approve
6171
uses: juliangruber/approve-pull-request-action@c530832d4d346c597332e20e03605aa94fa150a8
6272
with:
6373
github-token: ${{ secrets.DOCUBOT_REPO_PAT }}
6474
number: ${{ steps.create-pull-request.outputs.pull-request-number }}
75+
6576
- name: Send Slack notification if workflow fails
6677
uses: someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd
6778
if: failure()
6879
with:
6980
channel: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
7081
bot-token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
7182
color: failure
72-
text: The last enterprise-dates run for ${{github.repository}} failed. See https://github.com/github/${{github.repository}}/actions/workflows/enterprise-dates.yml
83+
text: The last enterprise-dates run for ${{github.repository}} failed. See https://github.com/${{github.repository}}/actions/workflows/enterprise-dates.yml

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@ jobs:
7979
channel: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
8080
bot-token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
8181
color: failure
82-
text: The last update-graphql-files run for ${{github.repository}} failed. See https://github.com/github/${{github.repository}}/actions/workflows/update-graphql-files.yml
82+
text: The last update-graphql-files run for ${{github.repository}} failed. See https://github.com/${{github.repository}}/actions/workflows/update-graphql-files.yml

0 commit comments

Comments
 (0)