Use ref input as KOSLI_TRAIL when provided#24
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Use the
refinput to drive theKOSLI_TRAILvalue, falling back to the previous logic(PR head SHA, then
github.sha) whenrefis 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
refrather than the calling repository's own SHA.Notes
refdefaults to"". In GitHub Actions expressions||returns the first truthy operand andan empty string is falsy, so when
refis not supplied the behaviour is unchanged.🤖 Generated with Claude Code