diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index 29be90d..beba81a 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -40,10 +40,12 @@ jobs: npx playwright install --with-deps - name: Running the command + id: run-command + continue-on-error: true run: node currscript.js - name: Rerun the command if previous failed - if: failure() + if: ${{ steps.run-command.outcome == 'failure' }} run: node currscript.js - name: Set date today @@ -78,4 +80,4 @@ jobs: # run: npm unpublish @fawazahmed0/currency-api@`date -d "94 days ago" -I | tr '-' '.'` # env: # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - \ No newline at end of file +