From 881dedafc45f050102f5a9712f70ed804506386d Mon Sep 17 00:00:00 2001 From: Ash Wilson Date: Mon, 6 May 2019 08:25:38 -0400 Subject: [PATCH 1/3] Default upstream refspec to `master` --- actions/schema-up/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.'); } From 6548fd15b7c3004190a4bdfa788516254ec85625 Mon Sep 17 00:00:00 2001 From: Ash Wilson Date: Mon, 6 May 2019 08:30:19 -0400 Subject: [PATCH 2/3] Let's try again tonight --- .github/main.workflow | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/main.workflow b/.github/main.workflow index 490262a3b2..c02769775e 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 2 * * 1)" resolves = "Update schema" } From 047503364e64ed73752504fdd9ca5b5570f6b9f6 Mon Sep 17 00:00:00 2001 From: Ash Wilson Date: Mon, 6 May 2019 13:10:18 -0400 Subject: [PATCH 3/3] Cron syntax is hard --- .github/main.workflow | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/main.workflow b/.github/main.workflow index c02769775e..e62af80adf 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -1,6 +1,6 @@ workflow "GraphQL schema update" { // Every Tuesday at 1am. - on = "schedule(0 2 * * 1)" + on = "schedule(0 1 * * 2)" resolves = "Update schema" }