From 604a7c66daad8ff61300e801c6cd235b960e3a52 Mon Sep 17 00:00:00 2001 From: Lens0021 / Leslie Date: Sun, 13 Oct 2024 10:19:13 +0900 Subject: [PATCH] Fix paths-filter, missing id and output (#335) --- .github/workflows/before-cd-test.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/before-cd-test.yml b/.github/workflows/before-cd-test.yml index 38821c3..60172a9 100644 --- a/.github/workflows/before-cd-test.yml +++ b/.github/workflows/before-cd-test.yml @@ -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