Skip to content

Commit c9759de

Browse files
committed
build: Skip Preview if .github/workflows/ was touched
Signed-off-by: Michael Vorburger <[email protected]>
1 parent f3b5250 commit c9759de

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/preview.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,16 @@ jobs:
3636
# run: ./build.sh
3737
run: echo "Hi! Buidling..."
3838

39+
- uses: dorny/paths-filter@v2
40+
id: changes
41+
with:
42+
filters: |
43+
workflows:
44+
- '.github/workflows/**'
45+
3946
- name: Deploy preview
47+
# https://github.com/www-learn-study/saraswati.learn.study/issues/50
48+
if: steps.changes.outputs.workflows == 'false'
4049
# TODO Re-check if https://github.com/actions/deploy-pages#inputs- support of "preview" is no longer "only in alpha currently and is not available to the public"
4150
uses: rossjrw/pr-preview-action@v1
4251
with:

0 commit comments

Comments
 (0)