Skip to content

Commit a92e109

Browse files
authored
Merge pull request #35681 from github/repo-sync
Repo sync
2 parents 5d8f807 + e921117 commit a92e109

File tree

4 files changed

+23
-7
lines changed

4 files changed

+23
-7
lines changed

.github/workflows/index-general-search.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
schedule:
2020
- cron: '20 16 * * *' # Run every 24 hours at 20 minutes past the hour
2121
workflow_run:
22-
workflows: ['Azure Production - Build and Deploy']
22+
workflows: ['Purge Fastly']
2323
types:
2424
- completed
2525

.github/workflows/notify-about-deployment.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ name: Notify about production deployment
77
on:
88
workflow_dispatch:
99
workflow_run:
10-
# Note, we could do this after the "Purge Fastly" finished
11-
workflows: ['Azure Production - Build and Deploy']
10+
workflows: ['Purge Fastly']
1211
types:
1312
- completed
1413

.github/workflows/purge-fastly.yml

+20-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ on:
1616
description: "Comma separated languages. E.g. 'en,ja, es' (defaults to all)"
1717
required: false
1818
default: ''
19-
workflow_run:
20-
workflows: ['Azure Production - Build and Deploy']
21-
types:
22-
- completed
19+
push:
20+
branches:
21+
- main
2322

2423
permissions:
2524
contents: read
@@ -43,6 +42,23 @@ jobs:
4342

4443
- uses: ./.github/actions/node-npm-setup
4544

45+
- name: Wait for production to match build number
46+
run: |
47+
needs=$(git rev-parse HEAD)
48+
start_time=$(date +%s)
49+
timeout_seconds=1200
50+
while [[ $needs != $(curl -s --fail --retry-connrefused --retry 5 https://docs.github.com/_build) ]]
51+
do
52+
if [[ $(($(date +%s) - $start_time)) -gt $timeout_seconds ]]
53+
then
54+
echo "Production did not match the build number within $timeout_seconds seconds"
55+
exit 1
56+
fi
57+
echo "Production is not up to date with the build commit"
58+
sleep 10
59+
done
60+
echo "Production is up to date with the build commit"
61+
4662
- name: Purge Fastly edge cache independent of language
4763
if: ${{ inputs.nuke_all }}
4864
run: npm run purge-fastly-edge-cache

ownership.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ownership:
99
description: Please use <https://catalog.githubapp.com/services/docs> instead.
1010
exec_sponsor: nerdneha
1111
product_manager: docs-bot
12+
team_slack: docs
1213
qos: best_effort
1314
tier: 2
1415
sev1:

0 commit comments

Comments
 (0)