From a31fb352787988c321c212f67f9f38b53bf5f44b Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Fri, 22 Jul 2022 18:19:32 +0200 Subject: [PATCH] Add update to master branch when we push changes to it. --- .github/workflows/build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 21c2996..7f9881a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,9 +1,13 @@ name: "Build getBible static JSON API files" on: - # run once per/day + # run once per/month schedule: - cron: '12 4 1 * *' + # when the master branch is updated + push: + branches: + - master jobs: build: @@ -34,4 +38,4 @@ jobs: HASH_REPO: ${{ secrets.GETBIBLE_HASH_REPO }} SCRIPTURE_REPO: ${{ secrets.GETBIBLE_SCRIPTURE_REPO }} run: | - /bin/bash ./run.sh --github --pull --push --repo-hash="$HASH_REPO" --repo-scripture="$SCRIPTURE_REPO" \ No newline at end of file + /bin/bash ./run.sh --github --pull --push --repo-hash="$HASH_REPO" --repo-scripture="$SCRIPTURE_REPO"