Skip to content

Commit

Permalink
Merge pull request github#35681 from github/repo-sync
Browse files Browse the repository at this point in the history
Repo sync
  • Loading branch information
docs-bot authored Dec 16, 2024
2 parents 5d8f807 + e921117 commit a92e109
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/index-general-search.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
schedule:
- cron: '20 16 * * *' # Run every 24 hours at 20 minutes past the hour
workflow_run:
workflows: ['Azure Production - Build and Deploy']
workflows: ['Purge Fastly']
types:
- completed

Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/notify-about-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ name: Notify about production deployment
on:
workflow_dispatch:
workflow_run:
# Note, we could do this after the "Purge Fastly" finished
workflows: ['Azure Production - Build and Deploy']
workflows: ['Purge Fastly']
types:
- completed

Expand Down
24 changes: 20 additions & 4 deletions .github/workflows/purge-fastly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ on:
description: "Comma separated languages. E.g. 'en,ja, es' (defaults to all)"
required: false
default: ''
workflow_run:
workflows: ['Azure Production - Build and Deploy']
types:
- completed
push:
branches:
- main

permissions:
contents: read
Expand All @@ -43,6 +42,23 @@ jobs:

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

- name: Wait for production to match build number
run: |
needs=$(git rev-parse HEAD)
start_time=$(date +%s)
timeout_seconds=1200
while [[ $needs != $(curl -s --fail --retry-connrefused --retry 5 https://docs.github.com/_build) ]]
do
if [[ $(($(date +%s) - $start_time)) -gt $timeout_seconds ]]
then
echo "Production did not match the build number within $timeout_seconds seconds"
exit 1
fi
echo "Production is not up to date with the build commit"
sleep 10
done
echo "Production is up to date with the build commit"
- name: Purge Fastly edge cache independent of language
if: ${{ inputs.nuke_all }}
run: npm run purge-fastly-edge-cache
Expand Down
1 change: 1 addition & 0 deletions ownership.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ownership:
description: Please use <https://catalog.githubapp.com/services/docs> instead.
exec_sponsor: nerdneha
product_manager: docs-bot
team_slack: docs
qos: best_effort
tier: 2
sev1:
Expand Down

0 comments on commit a92e109

Please sign in to comment.