Skip to content

fix(ci): pull latest upstream changes after syncing fork in update-apis workflow - #3963

Open
westarle wants to merge 1 commit into
googleapis:mainfrom
westarle:fix-workflow-sync-lag
Open

fix(ci): pull latest upstream changes after syncing fork in update-apis workflow#3963
westarle wants to merge 1 commit into
googleapis:mainfrom
westarle:fix-workflow-sync-lag

Conversation

@westarle

@westarle westarle commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

In .github/workflows/update-apis.yaml, step 1 (gh repo fork --clone) clones yoshi-code-bot's fork onto the Actions runner disk before step 2 (gh repo sync --force) syncs it.

Since gh repo sync is an API call that only updates the remote repository on GitHub servers and does not touch the local working directory, the clone on disk remained 1 run behind upstream/main (which caused run 30851788978 to run the unpatched synth.ts script prior to PR #3962).

Adding a git pull step immediately after syncing ensures the local clone updates to the latest synced upstream commit before executing the generator.

…is workflow

gh repo fork --clone clones the fork onto disk before gh repo sync --force runs. Since gh repo sync only updates the remote fork on GitHub servers and does not touch the local working directory, add a 'git pull' step so the local checkout updates to the latest synced upstream main immediately.
@westarle
westarle requested a review from a team as a code owner August 3, 2026 21:37
@product-auto-label product-auto-label Bot added the size: xs Pull request size is extra small. label Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: xs Pull request size is extra small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant