From 69945378e6524584153b976ef9c7bab4e15d714e Mon Sep 17 00:00:00 2001 From: Fawaz Ahmed Date: Fri, 14 Jun 2024 19:53:06 +0530 Subject: [PATCH] Update run.yml --- .github/workflows/run.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 +