fix(ci): use TAGBOT_PAT so TagBot-created tags trigger workflows#31
Merged
Conversation
The default GITHUB_TOKEN used by TagBot creates tags via the GitHub REST API, but GitHub deliberately does not propagate events from GITHUB_TOKEN to other workflows (anti-recursion). As a result, the Documentation workflow has not run on any tag since v0.9.0 (v0.11.x, v0.12.0, v0.14.0 were all silently skipped), leaving /stable/ frozen on v0.9.0-era content. Switching to a fine-grained PAT (Contents: write, Issues/PRs: read) restores the expected behavior: TagBot pushes the tag with the PAT, GitHub fires the tag-push event, and the Documentation workflow publishes per-version docs and advances the "stable" symlink. The TAGBOT_PAT secret must be set in repo settings before the next TagBot run.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #31 +/- ##
=======================================
Coverage 79.76% 79.76%
=======================================
Files 23 23
Lines 2891 2891
=======================================
Hits 2306 2306
Misses 585 585 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GITHUB_TOKEN. Per GitHub Actions anti-recursion policy, events created withGITHUB_TOKENdo not trigger other workflows — so the Documentation workflow has not fired on any tag sincev0.9.0. Result:https://s-celles.github.io/Giac.jl/stable/is frozen on v0.9.0-era content (still mentionsTempApi), and there are no per-version docs forv0.11.x,v0.12.0,v0.14.0.TAGBOT_PAT) — events from a PAT propagate normally, so the next tag push will trigger Documentation and CI.Prerequisite
A repo secret
TAGBOT_PATmust be set, holding a fine-grained PAT scoped to this repo with:Contents: Read and write,Issues: Read-only,Pull requests: Read-only. (Already added.)Test plan
versions.jsadvances pastv0.9.0and/stable/reflects the latest tagged release