Skip to content

Commit

Permalink
use paths option for docs github action
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmwang committed Jan 16, 2025
1 parent 6a3a915 commit 7f2bf27
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions .github/workflows/cd-deploy-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f2bf27

Please sign in to comment.