Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ inputs:
ref:
description: "The reference can be a branch, tag, or a commit SHA"
required: false
default: ${{ github.head_ref || github.ref }}
repo:
description: "Repo owner & name, slash separated, only set if invoking a workflow in a different repo"
required: false
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function run(): Promise<void> {

// Optional inputs, with defaults
const token = core.getInput('token')
const ref = core.getInput('ref') || github.context.ref
const ref = core.getInput('ref')
const [owner, repo] = core.getInput('repo')
? core.getInput('repo').split('/')
: [github.context.repo.owner, github.context.repo.repo]
Expand Down