From 99d8fa619fe41da57a7bd8931c40d1c991d8d823 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Wed, 21 Jun 2023 19:18:36 -0700 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83bd2ee..27e9c23 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,9 +25,12 @@ jobs: Cargo.toml Cargo.lock crates/** + outputs: + changed: ${{ steps.changed-files.outputs.any_changed }} tests: - if: jobs.changes.steps.changed-files.outputs.any_changed == 'true' + needs: changes + if: needs.changes.outputs.changed == 'true' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -43,7 +46,8 @@ jobs: run: cargo +nightly fmt --check release-binary: - if: jobs.changes.steps.changed-files.outputs.any_changed == 'true' + need: changes + if: needs.changes.outputs.changed == 'true' needs: tests runs-on: ${{ matrix.os }} strategy: @@ -101,8 +105,8 @@ jobs: path: tabby_${{ matrix.target }} pre-release: - if: jobs.changes.steps.changed-files.outputs.any_changed == 'true' && github.event_name != 'pull_request' - needs: release-binary + needs: [changes, release-binary] + if: needs.changes.outputs.changed == 'true' && github.event_name != 'pull_request' runs-on: ubuntu-latest permissions: contents: write