Skip to content

Commit

Permalink
chore: skip check_storage_layout check if provide_contracts job retur…
Browse files Browse the repository at this point in the history
…ns empty array

Prevent fromJSON failure by checking provide_contracts output before
triggering matrix strategy.

Resolves: #942
  • Loading branch information
gitcoindev committed Jun 26, 2024
1 parent bb70cdd commit 5bb26bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/core-contracts-storage-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
check_storage_layout:
needs: provide_contracts
runs-on: ubuntu-latest
if: ${{ needs.provide_contracts.outputs.matrix != '[]' && needs.provide_contracts.outputs.matrix != '' }}

strategy:
matrix:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/diamond-storage-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
check_storage_layout:
needs: provide_contracts
runs-on: ubuntu-latest
if: ${{ needs.provide_contracts.outputs.matrix != '[]' && needs.provide_contracts.outputs.matrix != '' }}

strategy:
matrix:
Expand Down

0 comments on commit 5bb26bb

Please sign in to comment.