Skip to content

Commit

Permalink
.github: Use a job to skip test (#315)
Browse files Browse the repository at this point in the history
* Revert "cd-test: Ignore backupbot (#313)"

This reverts commit 6637f4f.

* .github: Use a job to skip test

* Update before-cd-test.yml

* Update before-cd-test.yml

* Update before-cd-test.yml
  • Loading branch information
lens0021 authored Oct 7, 2024
1 parent 6637f4f commit 7c1ef63
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/before-cd-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,20 @@ on:
branches:
- main
pull_request:
paths-ignore:
- '**/backupbot.*'

jobs:
no-changes:
runs-on: ubuntu-22.04
steps:
- uses: dorny/paths-filter@v3
with:
filters: |
backupbot:
- '!**/backupbot.*'
# This name is used by status check requirement
before-cd-test:
if: ${{ needs.no-changes.outputs.backupbot == 'true' }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 7c1ef63

Please sign in to comment.