Skip to content

Commit b3d6813

Browse files
committed
fixup! Filtering pr - building preview only on specific labels
1 parent 04fc288 commit b3d6813

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: .github/workflows/preview.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ concurrency:
1010

1111
jobs:
1212
run:
13-
if: ${{ github.event.label.name == 'preview' }}
13+
if: contains(github.event.pull_request.labels.*.name, 'preview')
1414
runs-on: ubuntu-latest
15+
concurrency:
16+
group: netlify-${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
1518
env:
1619
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
1720
APP_ENV: prod

0 commit comments

Comments
 (0)