Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 7fdb958

Browse files
committed
Push using GITHUB_ACTOR and GITHUB_TOKEN
1 parent bb0ab6f commit 7fdb958

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

actions/schema-up/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@ Toolkit.run(async tools => {
6565
if (hasRelayChanges !== 0 && !relayFailed) {
6666
await tools.runInWorkspace('git', ['commit', '--all', '--message', ':gear: relay-compiler changes']);
6767
}
68-
await tools.runInWorkspace('git', ['push', 'origin', branchName]);
68+
69+
const actor = process.env.GITHUB_ACTOR;
70+
const token = process.env.GITHUB_TOKEN;
71+
const repository = process.env.GITHUB_REPOSITORY;
72+
73+
await tools.runInWorkspace('git', ['push', `https://${actor}:${token}@github.com/${repository}.git`, branchName]);
6974

7075
tools.log.info('Creating a pull request.');
7176

0 commit comments

Comments
 (0)