Skip to content

fix(sync): chain names the caller's file, the @ref cut before the path - #8

Merged
jshvn merged 1 commit into
mainfrom
josh/chain-file
Sep 14, 2026
Merged

jshvn merged 1 commit into
mainfrom
josh/chain-file

Conversation

@jshvn

@jshvn jshvn commented Sep 14, 2026

Copy link
Copy Markdown
Member

What

The chain step derived the caller's workflow file from GITHUB_WORKFLOW_REF by stripping through the last slash first. The ref part, refs/heads/main, holds slashes, so the result was main and gh workflow run main found nothing. Every consumer's chained run has failed this way since the step shipped; dropbox run 34837509853 is the one that surfaced it.

The cut now lives in .github/chain-file.sh, which takes the @ref off before the path, and the workflow calls it from the .lib checkout.

Test plan

  • sh .github/chain-file.sh --check runs the script's own cases and is wired into the ci guards step.
  • After release and pin bump, a dropbox run that leaves .run/chain queues the next run.

@jshvn
jshvn merged commit f6343cd into main Sep 14, 2026
2 checks passed
@jshvn
jshvn deleted the josh/chain-file branch September 14, 2026 18:57
jshvn added a commit to katoptra/ctan that referenced this pull request Sep 14, 2026
#32)

Pins the reusable workflows to lib v2.1.3 (katoptra/lib#8). A run that
leaves `.run/chain` now dispatches `sync.yml` by its own file name;
before, the chain step asked for a workflow named `main` and failed.
jshvn added a commit to katoptra/tlnet that referenced this pull request Sep 14, 2026
#8)

Pins the reusable workflows to lib v2.1.3 (katoptra/lib#8). A run that
leaves `.run/chain` now dispatches `sync.yml` by its own file name;
before, the chain step asked for a workflow named `main` and failed.
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