Skip to content

Commit

Permalink
ci: fix needs param (#1427)
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun committed May 6, 2023
1 parent 70b12c6 commit eaf0471
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/config/changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ docs:
- 'assets/**'
- 'licenses/**'
- '.asf.yaml'
- '.github/changes.yaml'
- '.github/config/changes.yml'
- '.gitignore'
- 'NOTICE'
7 changes: 4 additions & 3 deletions .github/workflows/kvrocks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ jobs:
check-and-lint:
name: Lint and check code
needs: [precondition]
if: ${{ needs.precondition.outputs.docs_only != 'true' }}
runs-on: ubuntu-22.04
needs: [precondition]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
Expand Down Expand Up @@ -91,8 +91,8 @@ jobs:

build-and-test:
name: Build and test
needs: [precondition, check-and-lint]
if: ${{ needs.precondition.outputs.docs_only != 'true' }}
needs: [check-and-lint]
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -279,8 +279,8 @@ jobs:
check-docker:
name: Check Docker image
needs: [precondition, check-and-lint]
if: ${{ needs.precondition.outputs.docs_only != 'true' }}
needs: [check-and-lint]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
Expand All @@ -296,6 +296,7 @@ jobs:
name: Required
runs-on: ubuntu-latest
needs:
- precondition
- build-and-test
- check-docker
steps:
Expand Down

0 comments on commit eaf0471

Please sign in to comment.