Skip to content

Replace Node runtime with composite action - #20

Merged
TobKed merged 2 commits into
masterfrom
chore/composite-runtime
Aug 22, 2026
Merged

TobKed merged 2 commits into
masterfrom
chore/composite-runtime

Conversation

@TobKed

@TobKed TobKed commented Aug 22, 2026

Copy link
Copy Markdown
Owner

Fixes the runner warning:

Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: TobKed/github-forks-sync-action@master

What

start.js did nothing but spawn('bash', ['start.sh']). That shim is the only reason this action has a Node runtime — and the only reason it needs a release every time GitHub deprecates one (node12 → node16 → node20 → node24).

Switched runs.using to composite, which invokes start.sh directly and has no runtime version to deprecate. start.js is deleted.

Inputs are mapped explicitly to the INPUT_* env vars start.sh already reads, so the script is unchanged and behaviour is identical (including the force/tags empty-string → false defaults).

Also

  • CI: actions/checkout@v2@v4, actions/setup-python@v2@v5, and pre-commit/action@v2.0.3 replaced with pipx run pre-commit (one less action to keep bumping).
  • CI: smoke test job that runs the action via uses: ./ and asserts it still executes and fails on missing input — catches the composite wiring breaking.

🤖 Generated with Claude Code

https://claude.ai/code/session_01X1sz7entAqb4B2Hycm9YF4

TobKed and others added 2 commits August 22, 2026 18:57
The Node entrypoint only spawned start.sh, so every Node runtime
deprecation (node12 -> node16 -> node20 -> node24) forced a release.
A composite action runs the script directly and never deprecates.

Also bumps the CI workflow off deprecated action versions and adds a
smoke test that the action still wires up and runs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01X1sz7entAqb4B2Hycm9YF4
pre-commit-hooks v4.2.0 -> v6.0.0, shellcheck-py v0.8.0.4 -> v0.11.0.1,
doctoc v2.1.0 -> v2.5.0. All hooks pass on the current tree.

Removed the debug-statements hook: it only inspects Python files and
this repo has none.

checkout v4 -> v7, and setup-python is gone entirely since pipx and
python are preinstalled on the runners.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01X1sz7entAqb4B2Hycm9YF4
@TobKed
TobKed merged commit 327b2af into master Aug 22, 2026
2 checks passed
@TobKed
TobKed deleted the chore/composite-runtime branch August 22, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant