From 5b38f756d1aa8fc283b6111e190c774479f564b0 Mon Sep 17 00:00:00 2001 From: mahula Date: Sat, 25 May 2024 21:40:49 +0200 Subject: [PATCH] add vuepress related filtering to deploydocs workflow --- .github/file-filters.yml | 2 ++ .github/workflows/frontend.deploy.docs.yml | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/.github/file-filters.yml b/.github/file-filters.yml index 0a232f0..41ba49f 100644 --- a/.github/file-filters.yml +++ b/.github/file-filters.yml @@ -14,7 +14,9 @@ frontend-test-build-docker: &frontend-test-build-docker frontend-test-build-docs: &frontend-test-build-docs - '**/*.md' + - '.github/workflows/frontend.deploy.docs.yml' - '.vuepress/*' + - 'package.json' frontend-test-build-storybook: &frontend-test-build-storybook - '**/*' \ No newline at end of file diff --git a/.github/workflows/frontend.deploy.docs.yml b/.github/workflows/frontend.deploy.docs.yml index 927e843..72843ef 100644 --- a/.github/workflows/frontend.deploy.docs.yml +++ b/.github/workflows/frontend.deploy.docs.yml @@ -4,7 +4,25 @@ on: branches: - master jobs: + files-changed: + name: Detect File Changes + runs-on: ubuntu-latest + outputs: + changes: ${{ steps.changes.outputs.frontend-test-build-docs }} + steps: + - uses: actions/checkout@master + + - name: Check for e2e docs file changes + uses: dorny/paths-filter@v3.0.2 + id: changes + with: + token: ${{ github.token }} + filters: .github/file-filters.yml + list-files: shell + build-and-deploy: + if: needs.files-changed.outputs.changes == 'true' + needs: files-changed runs-on: ubuntu-latest steps: - name: Checkout