Skip to content
Myr

[actions] nodejs.org PR: fix `force` boolean and grab the latest tag on dispatch

Before adoption: this commit came in with the history the project adopted, so no landing records it.

The branch-reset step sent `force` as a string via `gh api -f "force=true"`, which the Git refs API rejects ("not a boolean", HTTP 422), failing the release run. Use `-F` so it is sent as a boolean. Also resolve the version from the latest `vX.Y.Z` tag (via the tags API) rather than `releases/latest`, so a manual `workflow_dispatch` with no input works even before the GitHub release object for a freshly pushed tag is published.

authored by Jordan Harband · committed by Jordan Harband · parent 77fca77 · Browse files · 1 file+4 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−3 removed

  • other:+4 added−3 removed

1 file+4 added−3 removed

modified:.github/workflows/nodejs-org.yml+4 added-3 removed