From ed001d6f86b9ef27926acc6cf006ce21241da046 Mon Sep 17 00:00:00 2001 From: frank zhu Date: Fri, 22 Sep 2023 09:15:16 -0500 Subject: [PATCH] fix: solidity required prettier check (#10761) * alway run prettier formatting for solidity gha workflow * add conditional to steps * add conditional to metrics step --- .github/workflows/solidity.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/solidity.yml b/.github/workflows/solidity.yml index 9b17b75df3e..0e7ff30545d 100644 --- a/.github/workflows/solidity.yml +++ b/.github/workflows/solidity.yml @@ -120,17 +120,19 @@ jobs: run: working-directory: contracts needs: [changes] - if: needs.changes.outputs.changes == 'true' name: Prettier Formatting runs-on: ubuntu-latest steps: - name: Checkout the repo uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - name: Setup NodeJS + if: needs.changes.outputs.changes == 'true' uses: ./.github/actions/setup-nodejs - name: Run prettier check + if: needs.changes.outputs.changes == 'true' run: pnpm prettier:check - name: Collect Metrics + if: needs.changes.outputs.changes == 'true' id: collect-gha-metrics uses: smartcontractkit/push-gha-metrics-action@d2c2b7bdc9012651230b2608a1bcb0c48538b6ec with: