diff --git a/.github/main.workflow b/.github/main.workflow index 490262a3b2..e62af80adf 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -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" } diff --git a/actions/schema-up/index.js b/actions/schema-up/index.js index db4c34f2bd..2e602601cb 100644 --- a/actions/schema-up/index.js +++ b/actions/schema-up/index.js @@ -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.'); }