Skip to content

Commit a69ac85

Browse files
committed
Fix ref regression
1 parent b8ac400 commit a69ac85

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

action.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ inputs:
1515
ref:
1616
description: 'The reference can be a branch, tag, or a commit SHA'
1717
required: false
18-
default: ${{ github.ref }}
1918
repo:
2019
description: 'Repo owner & name, slash separated, only set if invoking a workflow in a different repo'
2120
required: false

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async function run(): Promise<void> {
2626

2727
// Optional inputs, with defaults
2828
const token = core.getInput('token')
29-
const ref = core.getInput('ref')
29+
const ref = core.getInput('ref') || github.context.ref
3030
const [owner, repo] = core.getInput('repo')
3131
? core.getInput('repo').split('/')
3232
: [github.context.repo.owner, github.context.repo.repo]

0 commit comments

Comments
 (0)