Skip to content

Use ref input as KOSLI_TRAIL when provided#24

Merged
gsavage merged 1 commit into
mainfrom
support-ref-for-kosli-trail
Jun 26, 2026
Merged

Use ref input as KOSLI_TRAIL when provided#24
gsavage merged 1 commit into
mainfrom
support-ref-for-kosli-trail

Conversation

@gsavage

@gsavage gsavage commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

What

Use the ref input to drive the KOSLI_TRAIL value, falling back to the previous logic
(PR head SHA, then github.sha) when ref is empty.

Why

This supports CyberDojo's co-promotion workflow, where one GitHub repository uses these
workflows to deploy changes originating from a different CyberDojo repository. In that case
the Kosli trail must be keyed on the supplied ref rather than the calling repository's own SHA.

Notes

ref defaults to "". In GitHub Actions expressions || returns the first truthy operand and
an empty string is falsy, so when ref is not supplied the behaviour is unchanged.

🤖 Generated with Claude Code

Allow the ref input to drive the KOSLI_TRAIL value, falling back to the
previous logic (PR head SHA, then github.sha) when ref is empty.

This supports CyberDojo's co-promotion workflow, where one GitHub
repository uses these workflows to deploy changes originating from a
different CyberDojo repository. In that case the Kosli trail must be
keyed on the supplied ref rather than the calling repository's own SHA.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gsavage gsavage merged commit d71c5ea into main Jun 26, 2026
1 check passed
@gsavage gsavage deleted the support-ref-for-kosli-trail branch June 26, 2026 12:37
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