Skip to content

Commit fd1543f

Browse files
ci: fix infinite generate loop and update schedule to 5am/5pm Pacific
- Restore workflow.lock to HEAD before checking for changes to avoid non-deterministic codeSamplesRevisionDigest diffs triggering endless generate→merge loops - Change schedule from daily 6am UTC to 5am & 5pm Pacific (12:00 & 00:00 UTC) Co-Authored-By: AJ Steers <aj@airbyte.io>
1 parent 5822e5e commit fd1543f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/generate-command.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
# Triggers:
77
# - On push to main: Auto-generates after every merge to ensure SDK stays up-to-date (auto-merge enabled)
8-
# - Daily schedule (6 AM UTC): Catches upstream API spec changes (auto-merge enabled)
8+
# - Daily schedule (5 AM & 5 PM Pacific): Catches upstream API spec changes (auto-merge enabled)
99
# - Manual workflow_dispatch: For on-demand generation
1010
# - Slash command (/generate): Regenerates and pushes results back to the PR branch
1111
# - workflow_call: For validation from other workflows (e.g., PR checks)
@@ -30,7 +30,8 @@ name: Generate SDK
3030
branches:
3131
- main
3232
schedule:
33-
- cron: '0 6 * * *'
33+
- cron: '0 12 * * *'
34+
- cron: '0 0 * * *'
3435
workflow_dispatch:
3536
inputs:
3637
dry_run:
@@ -203,6 +204,9 @@ jobs:
203204
if: ${{ !inputs.dry_run }}
204205
id: changes
205206
run: |
207+
# Restore workflow.lock to HEAD to ignore non-deterministic
208+
# digest changes that cause infinite generate→merge loops.
209+
git checkout HEAD -- .speakeasy/workflow.lock 2>/dev/null || true
206210
if [ -n "$(git status --porcelain)" ]; then
207211
echo "has_changes=true" >> $GITHUB_OUTPUT
208212
else

0 commit comments

Comments
 (0)