From ccaf750b308f31957435a4611caf8dfa20158c23 Mon Sep 17 00:00:00 2001 From: Ash Wilson Date: Tue, 7 May 2019 09:58:33 -0400 Subject: [PATCH 1/2] Use a full refspec and only use HEAD locally --- 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 2e602601cb..2908d39637 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 || 'master'; + const upstream = tools.context.ref || 'HEAD:refs/heads/master'; await tools.runInWorkspace('git', ['push', 'origin', upstream]); tools.exit.success('Schema is up to date on master.'); } From c3e79423040da84070e8607ef1f5f64d147a1c5e Mon Sep 17 00:00:00 2001 From: Ash Wilson Date: Tue, 7 May 2019 09:59:00 -0400 Subject: [PATCH 2/2] On to wednesday :calendar: --- .github/main.workflow | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/main.workflow b/.github/main.workflow index e62af80adf..a2e3c22b0b 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -1,6 +1,6 @@ workflow "GraphQL schema update" { - // Every Tuesday at 1am. - on = "schedule(0 1 * * 2)" + // Every Wednesday at 1am. + on = "schedule(0 1 * * 3)" resolves = "Update schema" }