Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
kuroweb committed Jul 31, 2024
1 parent bb2a84d commit 6756af8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,22 @@ on:
branches: [master]

jobs:
check_changed:
runs-on: ubuntu-20.04
outputs:
backend_diff: ${{ steps.backend_diff.outputs.changed }}
steps:
- uses: actions/checkout@v3
- run: git fetch origin master --depth=1
- id: backend_diff
run: |
CHANGED=$(git diff --name-only origin/master HEAD --relative ./volumes/backend/ | wc -l)
echo "::set-output name=changed::$CHANGED"
backend:
runs-on: ubuntu-20.04
needs: check_changed
if: needs.check_changed.outputs.backend_diff != '0'
steps:
- name: Checkout Repository
uses: actions/checkout@v3
Expand Down

0 comments on commit 6756af8

Please sign in to comment.