Skip to content

Commit

Permalink
Prevents duplicated work
Browse files Browse the repository at this point in the history
  • Loading branch information
danielxvu committed Oct 1, 2023
1 parent 6258589 commit 849f8eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/use-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
outputs:
sheet: ${{ steps.filter.outputs.sheet }}
sheet_files: ${{ steps.filter.outputs.sheet_files }}
force_update: ${{ steps.filter.outputs.force-update }}
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
Expand All @@ -30,7 +31,7 @@ jobs:
process-character-sheets:
name: Process character-sheet HTML/CSS
needs: changes
if: ${{ needs.changes.outputs.sheet == 'true'}}
if: ${{ needs.changes.outputs.sheet == 'true' }}
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
Expand Down Expand Up @@ -68,7 +69,7 @@ jobs:
force-update:
name: Process HTML/CSS for all character sheets (force-update)
needs: changes
if: ${{ needs.changes.outputs.force-update == 'true'}}
if: ${{ needs.changes.outputs.sheet != 'true' && needs.changes.outputs.force_update == 'true'}}
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
Expand Down

0 comments on commit 849f8eb

Please sign in to comment.