From 814414ab5744046c23f6080e65b7e7e0bb71beb9 Mon Sep 17 00:00:00 2001 From: mahula Date: Sat, 25 May 2024 21:58:49 +0200 Subject: [PATCH] add vuepress related filtering to deploy docs workflow --- .github/file-filters.yml | 4 +++- .github/workflows/backend.deploy.docs.yml | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/file-filters.yml b/.github/file-filters.yml index 41f3ae5..b316ec6 100644 --- a/.github/file-filters.yml +++ b/.github/file-filters.yml @@ -14,4 +14,6 @@ backend-test-build-docker: &backend-test-build-docker backend-test-build-docs: &backend-test-build-docs - '**/*.md' - - '.vuepress/*' \ No newline at end of file + - '.github/workflows/backend.deploy.docs.yml' + - '.vuepress/*' + - 'package.json' \ No newline at end of file diff --git a/.github/workflows/backend.deploy.docs.yml b/.github/workflows/backend.deploy.docs.yml index d3bd9f8..606fd09 100644 --- a/.github/workflows/backend.deploy.docs.yml +++ b/.github/workflows/backend.deploy.docs.yml @@ -4,6 +4,22 @@ on: branches: - master jobs: + files-changed: + name: Detect File Changes + runs-on: ubuntu-latest + outputs: + changes: ${{ steps.changes.outputs.backend-test-build-docs }} + steps: + - uses: actions/checkout@master + + - name: Check for backend 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: runs-on: ubuntu-latest steps: