0
0
mirror of https://github.com/fawazahmed0/exchange-api.git synced 2025-06-29 18:21:14 +00:00

Update run.yml

This commit is contained in:
Fawaz Ahmed 2024-06-14 19:53:06 +05:30 committed by GitHub
parent 55aee357ba
commit 69945378e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 }}