Skip to content

Commit 129497d

Browse files
fix(standards): restore schedule trigger and align AGENTS block with main
- Restores the `schedule: cron '0 */4 * * *'` trigger that drifted out during branch divergence (main added it after the branch forked) - Restores the fuller AGENTS MUST NOT comment that explains why all triggers are protected (matches main's authoritative version) - Preserves all branch improvements: SHA-pin rationale, adoption guidance directing to standards/, and `contents: write` permission This aligns the standards template's trigger/comment sections with main's version, reducing conflict scope when the branch is rebased. Co-authored-by: Don Petry <don-petry@users.noreply.github.com>
1 parent c42017f commit 129497d

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

standards/workflows/dependabot-rebase.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@
1212
# this internal reusable workflow. Downstream repos pin to a specific
1313
# commit SHA and bump deliberately. To look up the current SHA:
1414
# gh api repos/petry-projects/.github/branches/main --jq '.commit.sha'
15-
# • You MUST NOT change: trigger event, the concurrency group name,
16-
# the explicit secrets block, or the job-level `permissions:` block —
17-
# reusable workflows can be granted no more permissions than the calling
18-
# job has, so removing the stanza breaks
19-
# the reusable's gh API calls.
15+
# • You MUST NOT change: the concurrency group name, the explicit secrets
16+
# block, or the job-level `permissions:` block — reusable workflows can be
17+
# granted no more permissions than the calling job has, so removing the
18+
# stanza breaks the reusable's gh API calls. Do not remove any trigger
19+
# (`push` keeps the self-sustaining chain; `schedule` is the safety net
20+
# when no PR merges have occurred recently; `workflow_dispatch` allows
21+
# manual queue flushes).
2022
# • If you need different behaviour, open a PR against the reusable in the
2123
# central repo.
2224
# ─────────────────────────────────────────────────────────────────────────────
@@ -35,6 +37,8 @@ on:
3537
push:
3638
branches:
3739
- main
40+
schedule:
41+
- cron: '0 */4 * * *' # every 4 hours — safety net when no pushes to main trigger the chain
3842
workflow_dispatch: # allow manual trigger to flush Dependabot PR queue
3943

4044
concurrency:

0 commit comments

Comments
 (0)