From 3ebcec8c766268bcd425cf1b61b4e70cbd9c64e2 Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Thu, 2 Nov 2023 07:23:55 +0100 Subject: [PATCH 1/3] build: Skip Preview if .github/workflows/ was touched Signed-off-by: Michael Vorburger --- .github/workflows/preview.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index cc2a01e..73bc1c9 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -36,7 +36,16 @@ jobs: # run: ./build.sh run: echo "Hi! Buidling..." + - uses: dorny/paths-filter@v2 + id: changes + with: + filters: | + workflows: + - '.github/workflows/**' + - name: Deploy preview + # https://github.com/www-learn-study/saraswati.learn.study/issues/50 + if: steps.changes.outputs.workflows == 'false' # 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" uses: rossjrw/pr-preview-action@v1 with: From 327e2a3a7031a9b40e9f8fc1e8d94e151244f4d4 Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Thu, 2 Nov 2023 07:26:44 +0100 Subject: [PATCH 2/3] Update preview.yaml Signed-off-by: Michael Vorburger --- .github/workflows/preview.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 73bc1c9..3997e9d 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -36,7 +36,7 @@ jobs: # run: ./build.sh run: echo "Hi! Buidling..." - - uses: dorny/paths-filter@v2 + - uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1 id: changes with: filters: | @@ -47,7 +47,7 @@ jobs: # https://github.com/www-learn-study/saraswati.learn.study/issues/50 if: steps.changes.outputs.workflows == 'false' # 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" - uses: rossjrw/pr-preview-action@v1 + uses: rossjrw/pr-preview-action@183082fd714654433c8e2f6daedbfb4f20f2a94a # v1.4.4 with: source-dir: ./site/ # https://github.com/www-learn-study/previews From 45b7d66cb7a75e02442712b5aee61749cc09fc43 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 2 Nov 2023 06:26:49 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .github/workflows/preview.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 3997e9d..48ff37b 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -47,7 +47,7 @@ jobs: # https://github.com/www-learn-study/saraswati.learn.study/issues/50 if: steps.changes.outputs.workflows == 'false' # 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" - uses: rossjrw/pr-preview-action@183082fd714654433c8e2f6daedbfb4f20f2a94a # v1.4.4 + uses: rossjrw/pr-preview-action@183082fd714654433c8e2f6daedbfb4f20f2a94a # v1.4.4 with: source-dir: ./site/ # https://github.com/www-learn-study/previews