Skip to content

Commit cb728b0

Browse files
authored
checkout repo before assuming it is there (github#19086)
1 parent d9cb281 commit cb728b0

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/enterprise-dates.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,16 @@ jobs:
3030
run: |
3131
echo 'The repo is currently frozen! Exiting this workflow.'
3232
exit 1 # prevents further steps from running
33+
34+
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
35+
if: steps.existingIssue.outputs.deprecationIssue == 'false' || steps.existingIssue.outputs.releaseIssue == 'false'
36+
3337
- name: Run script/update-enterprise-dates.js
3438
run: |
3539
script/update-enterprise-dates.js
3640
env:
3741
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
3843
- name: Create pull request
3944
id: create-pull-request
4045
uses: peter-evans/create-pull-request@8c603dbb04b917a9fc2dd991dc54fef54b640b43
@@ -50,23 +55,26 @@ jobs:
5055
labels: automerge,autoupdate
5156
branch: enterprise-server-dates-update
5257
delete-branch: true
58+
5359
- if: ${{ failure() }}
5460
name: Delete remote branch (if previous steps failed)
5561
uses: dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911
5662
with:
5763
github_token: ${{ secrets.GITHUB_TOKEN }}
5864
branches: enterprise-server-dates-update
65+
5966
- if: ${{ steps.create-pull-request.outputs.pull-request-number }}
6067
name: Approve
6168
uses: juliangruber/approve-pull-request-action@c530832d4d346c597332e20e03605aa94fa150a8
6269
with:
6370
github-token: ${{ secrets.DOCUBOT_REPO_PAT }}
6471
number: ${{ steps.create-pull-request.outputs.pull-request-number }}
72+
6573
- name: Send Slack notification if workflow fails
6674
uses: someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd
6775
if: failure()
6876
with:
6977
channel: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
7078
bot-token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
7179
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
80+
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)