Skip to content

Commit

Permalink
Fix paths-filter, missing id and output (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 authored Oct 13, 2024
1 parent fcac5d8 commit 604a7c6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/before-cd-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,22 @@ on:
pull_request:

jobs:
not-changes:
changes-other-than:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
backupbot:
- '!**/backupbot.*'
outputs:
backupbot: ${{ steps.filter.outputs.backupbot }}

# This name is used by status check requirement
before-cd-test:
needs: not-changes
if: ${{ needs.not-changes.outputs.backupbot == 'true' }}
if: ${{ needs.changes-other-than.outputs.backupbot == 'true' }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 604a7c6

Please sign in to comment.