From bee5f4aa4d60f70ae3b4c98ae369672ad0d53130 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Fri, 29 Jan 2021 20:19:20 +1100 Subject: [PATCH] fix action logic to avoid recursion ignore changes to 'boundaries.topo.json' on PUSH actions to avoid triggering the push action when PRs are merged, since they already got updated at the PR stage. --- .github/workflows/update-topo-on-info-pr.yml | 2 +- .github/workflows/update-topo-on-info-push.yml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-topo-on-info-pr.yml b/.github/workflows/update-topo-on-info-pr.yml index 179684f..3078284 100644 --- a/.github/workflows/update-topo-on-info-pr.yml +++ b/.github/workflows/update-topo-on-info-pr.yml @@ -3,7 +3,7 @@ name: topo auto updater on: pull_request: paths: - - website/data/library_services_information.csv + - 'website/data/library_services_information.csv' jobs: auto-topo-updater: diff --git a/.github/workflows/update-topo-on-info-push.yml b/.github/workflows/update-topo-on-info-push.yml index bfba16c..03f9be7 100644 --- a/.github/workflows/update-topo-on-info-push.yml +++ b/.github/workflows/update-topo-on-info-push.yml @@ -5,7 +5,8 @@ on: branches: - "master" paths: - - website/data/library_services_information.csv + - 'website/data/library_services_information.csv' + - '!website/data/boundaries.topo.json' jobs: auto-topo-updater: runs-on: ubuntu-latest