From e4dc4d47d9f9533d7752072d87768ee70d741b1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Garillot?= <4142+huitseeker@users.noreply.github.com> Date: Mon, 7 Nov 2022 13:19:27 -0500 Subject: [PATCH] chore(ci): fix use of pnpm output (#5909) Continuation of #5881: make other flow dependent on pnpm skip properly when the output is empty --- .github/workflows/explorer-client-prs.yml | 2 +- .github/workflows/ts-sdk.yml | 2 +- .github/workflows/wallet-ext-prs.yml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/explorer-client-prs.yml b/.github/workflows/explorer-client-prs.yml index ca74992d9aa1c..067716f989773 100644 --- a/.github/workflows/explorer-client-prs.yml +++ b/.github/workflows/explorer-client-prs.yml @@ -4,7 +4,7 @@ jobs: diff: runs-on: [ubuntu-latest] outputs: - isClient: ${{ contains(fromJson(steps.pnpm.outputs.packages), 'sui-explorer') || steps.diff.outputs.isRust }} + isClient: ${{ steps.diff.outputs.packages && contains(fromJson(steps.pnpm.outputs.packages), 'sui-explorer') || steps.diff.outputs.isRust }} steps: - uses: actions/checkout@v3 - name: Detect Changes (pnpm) diff --git a/.github/workflows/ts-sdk.yml b/.github/workflows/ts-sdk.yml index c850c8fb48ac5..ed0dee9347e75 100644 --- a/.github/workflows/ts-sdk.yml +++ b/.github/workflows/ts-sdk.yml @@ -4,7 +4,7 @@ jobs: diff: runs-on: [ubuntu-latest] outputs: - isTypescriptSDK: ${{ contains(fromJson(steps.pnpm.outputs.packages), '@mysten/sui.js') || steps.diff.outputs.isRust }} + isTypescriptSDK: ${{ steps.diff.outputs.packages && contains(fromJson(steps.pnpm.outputs.packages), '@mysten/sui.js') || steps.diff.outputs.isRust }} steps: - uses: actions/checkout@v3 - name: Detect Changes (pnpm) diff --git a/.github/workflows/wallet-ext-prs.yml b/.github/workflows/wallet-ext-prs.yml index ac1559bc2547f..bf97277c5d5b3 100644 --- a/.github/workflows/wallet-ext-prs.yml +++ b/.github/workflows/wallet-ext-prs.yml @@ -4,8 +4,8 @@ jobs: diff: runs-on: ubuntu-latest outputs: - isWalletExt: ${{ contains(fromJson(steps.pnpm.outputs.packages), 'sui-wallet') || steps.diff.outputs.isRust }} - isSrcChange: ${{ contains(fromJson(steps.pnpm.outputs.packages), 'sui-wallet') }} + isWalletExt: ${{ steps.diff.outputs.packages && contains(fromJson(steps.pnpm.outputs.packages), 'sui-wallet') || steps.diff.outputs.isRust }} + isSrcChange: ${{ steps.diff.outputs.packages && contains(fromJson(steps.pnpm.outputs.packages), 'sui-wallet') }} steps: - uses: actions/checkout@v3 - name: Detect Changes (pnpm)