Skip to content

Commit d47f0a2

Browse files
author
Ian Walter
authored
Trying to fix branch logic
1 parent 36d301b commit d47f0a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ async function run () {
7171
await execa('git', ['commit', '-m', 'Adding changeset'])
7272

7373
// Push the changes back to the branch.
74-
const branch = dot.get(github.context, 'payload.ref').split('/').pop()
74+
const branch = (process.env.GITHUB_REF || 'main').split('/').pop()
7575
const actor = process.env.GITHUB_ACTOR
7676
const token = process.env.INPUT_GITHUB_TOKEN
7777
const repo = process.env.GITHUB_REPOSITORY

0 commit comments

Comments
 (0)