Skip to content

Commit

Permalink
add files-changed check
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmwang committed Dec 16, 2024
1 parent 3af87dc commit 010a15e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/cd-deploy-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,28 @@ on:
branches: [master, gql]

jobs:
detect-changes:
name: Detect Changes
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.changed.outputs.any_changed }}

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- 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.any_changed == 'true'

steps:
- name: Checkout Repository
Expand Down

0 comments on commit 010a15e

Please sign in to comment.