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
This commit is contained in:
Hugh Rundle 2021-01-29 09:50:15 +11:00
parent cc885cfc36
commit 88cfcaf913

View file

@ -8,6 +8,7 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
processJson: processJson:
if: ${{ github.event.label.name != 'automated' }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2