Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add support for commit input (fixes #1634) #1858

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
in input-helper, make ref fallback to commit if the commit was provid…
…ed but not ref

Signed-off-by: James Bradlee <james.bradlee@telenor.no>
  • Loading branch information
testersen committed Aug 20, 2024
commit 8a241b5b4d9f8cd0d8f75d29f235481aff4b404a
2 changes: 1 addition & 1 deletion src/input-helper.ts
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ export async function getInputs(): Promise<IGitSourceSettings> {

// Source branch, source version
result.commit = core.getInput('commit')
result.ref = core.getInput('ref')
result.ref = core.getInput('ref') ?? result.commit
if (!result.ref) {
if (isWorkflowRepository) {
result.ref = github.context.ref