We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36d301b commit d47f0a2Copy full SHA for d47f0a2
index.js
@@ -71,7 +71,7 @@ async function run () {
71
await execa('git', ['commit', '-m', 'Adding changeset'])
72
73
// Push the changes back to the branch.
74
- const branch = dot.get(github.context, 'payload.ref').split('/').pop()
+ const branch = (process.env.GITHUB_REF || 'main').split('/').pop()
75
const actor = process.env.GITHUB_ACTOR
76
const token = process.env.INPUT_GITHUB_TOKEN
77
const repo = process.env.GITHUB_REPOSITORY
0 commit comments