Skip to content

Commit

Permalink
chore(ci): fix use of pnpm output (MystenLabs#5909)
Browse files Browse the repository at this point in the history
Continuation of MystenLabs#5881: make other flow dependent on pnpm skip properly when the output is empty
  • Loading branch information
huitseeker authored Nov 7, 2022
1 parent 29d3a50 commit e4dc4d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/explorer-client-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ts-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/wallet-ext-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e4dc4d4

Please sign in to comment.