Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repo sync #35681

Merged
merged 2 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading