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

Commit 236bebb

Browse files
authored
Merge pull request #2125 from atom/aw/no-ref-on-master
Default upstream refspec to master
2 parents 23324dd + 0475033 commit 236bebb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/main.workflow

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
workflow "GraphQL schema update" {
2-
// Every Monday at 1am.
3-
on = "schedule(0 1 * * 1)"
2+
// Every Tuesday at 1am.
3+
on = "schedule(0 1 * * 2)"
44
resolves = "Update schema"
55
}
66

actions/schema-up/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Toolkit.run(async tools => {
4242

4343
if (hasRelayChanges === 0 && !relayFailed) {
4444
tools.log.info('Generated relay files are unchanged.');
45-
const upstream = tools.context.ref.replace(/^refs\/heads\//, '');
45+
const upstream = tools.context.ref || 'master';
4646
await tools.runInWorkspace('git', ['push', 'origin', upstream]);
4747
tools.exit.success('Schema is up to date on master.');
4848
}

0 commit comments

Comments
 (0)