From 4a41268ed1bac4a17aa8b6e1a6a16a7212851365 Mon Sep 17 00:00:00 2001 From: kx9x Date: Fri, 6 May 2022 20:11:00 -0700 Subject: [PATCH] Update roboanimals-workflow.yml --- .github/workflows/roboanimals-workflow.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/roboanimals-workflow.yml b/.github/workflows/roboanimals-workflow.yml index 558b2f9..472e58a 100644 --- a/.github/workflows/roboanimals-workflow.yml +++ b/.github/workflows/roboanimals-workflow.yml @@ -305,7 +305,7 @@ jobs: echo "::endgroup::" exit ${{ steps.fn.outputs.brownie-exit-code}} - - name: Nonce fail check + - name: Nonce fail check, add comment if: inputs.send == 'true' && env.NONCE == '' uses: peter-evans/create-or-update-comment@v1 with: @@ -313,7 +313,12 @@ jobs: body: | > Did not find nonce.txt. Did you run with send=true without actually posting the transaction at the end of your function? Use the @sign decorator above your function. - - name: Safe url check + - name: Nonce fail check + if: inputs.send == 'true' && env.NONCE == '' + run: | + exit 1 + + - name: Safe url check, add comment if: inputs.send == true && env.SAFE_LINK == '' uses: peter-evans/create-or-update-comment@v1 with: @@ -321,6 +326,11 @@ jobs: body: | > Did not find safe.txt. + - name: Safe fail check, add comment + if: inputs.send == 'true' && env.SAFE_LINK == '' + run: | + exit 1 + - name: Edit comment with error message if: ${{ failure() && inputs.from_pr == 'true' }} uses: peter-evans/create-or-update-comment@v1