Commit fe4ecf4
committed
fix(ci): always run documentation commit on release
The `if` guard on the "Commit and push changes" step compared `github.ref`
to `refs/heads/<default_branch>`, but the Release workflow triggers only on
tag pushes (`on: push: tags: 'v*'`), so `github.ref` is always
`refs/tags/vX.Y.Z` and never a branch ref — the condition can never be true.
Before 36fa8b6 the guard used mixed `${{ }}` interpolation inside literal
text, which GitHub Actions evaluates as a non-empty (truthy) string, so the
step always ran (by accident). Rewriting it with `format()` turned it into a
proper boolean that is always false on tag-triggered runs, silently skipping
the documentation commit since v6.0.3.
The job only runs on `v*` tag pushes (gated by build-release's repository
guard) and the checkout already targets the default branch, so the guard is
unnecessary. Remove it so the docs commit runs on every release.1 parent 062b960 commit fe4ecf4
1 file changed
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | 134 | | |
136 | 135 | | |
137 | 136 | | |
| |||
0 commit comments