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

Default upstream refspec to master #2125

Merged
merged 3 commits into from
May 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
workflow "GraphQL schema update" {
// Every Monday at 1am.
on = "schedule(0 1 * * 1)"
// Every Tuesday at 1am.
on = "schedule(0 1 * * 2)"
resolves = "Update schema"
}

Expand Down
2 changes: 1 addition & 1 deletion actions/schema-up/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Toolkit.run(async tools => {

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