From cc885cfc36b0c1f2a20b81baa37cff304c6268d7 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Fri, 29 Jan 2021 09:18:07 +1100 Subject: [PATCH 1/2] add labels to actions --- .github/workflows/merge-csv-to-topojson.yml | 1 + .github/workflows/minify-map-json.yml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/merge-csv-to-topojson.yml b/.github/workflows/merge-csv-to-topojson.yml index 67af72a..70569cc 100644 --- a/.github/workflows/merge-csv-to-topojson.yml +++ b/.github/workflows/merge-csv-to-topojson.yml @@ -22,3 +22,4 @@ jobs: title: Update TopoJSON body: Update boundaries.topo.json with new data from library_services_information.csv branch: auto-update-topo + labels: automated,data diff --git a/.github/workflows/minify-map-json.yml b/.github/workflows/minify-map-json.yml index 58fce2d..5a24abd 100644 --- a/.github/workflows/minify-map-json.yml +++ b/.github/workflows/minify-map-json.yml @@ -25,5 +25,6 @@ jobs: with: commit-message: Update TopoJSON boundaries title: Update TopoJSON boundaries - body: Clean and minify GeoJSON and process to TopoJSON + body: 'Clean & minify GeoJSON; process to TopoJSON; merge library info csv to topo.' branch: geo-to-topo + labels: automated,data -- 2.39.5 From 88cfcaf913a33e71c6f250288523777dfe9519ed Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Fri, 29 Jan 2021 09:50:15 +1100 Subject: [PATCH 2/2] add condition to Action The minify-map-json action is causing itself to run every time its PRs are merged. This hopefully will stop that happening, but ignoring anything with an 'automated' label and then applying that label when pushing the PR --- .github/workflows/minify-map-json.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/minify-map-json.yml b/.github/workflows/minify-map-json.yml index 5a24abd..478da2b 100644 --- a/.github/workflows/minify-map-json.yml +++ b/.github/workflows/minify-map-json.yml @@ -8,6 +8,7 @@ on: workflow_dispatch: jobs: processJson: + if: ${{ github.event.label.name != 'automated' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 -- 2.39.5