From 7f2bf27cf343f0ac831484bb24897ae3cc1e827e Mon Sep 17 00:00:00 2001 From: maxmwang Date: Wed, 15 Jan 2025 22:47:24 -0800 Subject: [PATCH] use paths option for docs github action --- .github/workflows/cd-deploy-docs.yaml | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/.github/workflows/cd-deploy-docs.yaml b/.github/workflows/cd-deploy-docs.yaml index 143a82752..12e0bb672 100644 --- a/.github/workflows/cd-deploy-docs.yaml +++ b/.github/workflows/cd-deploy-docs.yaml @@ -5,32 +5,12 @@ concurrency: documentation on: push: branches: [master, gql] + paths: ["docs/**"] jobs: - detect-changes: - name: Detect Documentation Changes - runs-on: ubuntu-latest - outputs: - changed: ${{ steps.changed.outputs.any_changed }} - - steps: - - name: Checkout Repository - uses: actions/checkout@v4 - with: - fetch-depth: 2 - - - name: Detect Changed Files - uses: tj-actions/changed-files@v45 - id: changed - with: - files: | - docs/** - build-push: name: Build and Push Docs Image - needs: [detect-changes] runs-on: ubuntu-latest - if: needs.detect-changes.outputs.changed == 'true' steps: - name: Checkout Repository