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 821c9b7 commit 057a6baCopy full SHA for 057a6ba
start.js
@@ -46,7 +46,7 @@ const main = async () => {
46
const headers = {
47
'User-Agent': 'github.com/ad-m/github-push-action'
48
};
49
- if (process.env.GITHUB_TOKEN) headers.Authorization = `token ${process.env.GITHUB_TOKEN}`;
+ if (process.env.INPUT_GITHUB_TOKEN) headers.Authorization = `token ${process.env.INPUT_GITHUB_TOKEN}`;
50
const body = JSON.parse(await get(`https://api.github.com/repos/${repository}`, { headers }))
51
branch = body.default_branch;
52
}
0 commit comments