From be61e4c747bd196c5974b3e381b71bb45f19dd8b Mon Sep 17 00:00:00 2001 From: Avior Date: Mon, 26 Apr 2021 12:29:35 +0200 Subject: [PATCH] Update node.js.yml --- .github/workflows/node.js.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 63340cd..517f883 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -49,6 +49,7 @@ jobs: run: yarn && yarn start && TCGDEX_COMPILER_LANG=fr yarn start - name: Commit Changes + id: commit working-directory: ./dist if: ${{ (github.event_name == 'push') || github.event_name == 'repository_dispatch' }} continue-on-error: true @@ -60,7 +61,7 @@ jobs: - name: Push changes uses: ad-m/github-push-action@master - if: ${{ success() && (github.event_name == 'push' || github.event_name == 'repository_dispatch') }} + if: ${{ steps.commit.outcome === 'success' && (github.event_name == 'push' || github.event_name == 'repository_dispatch') }} with: github_token: ${{ secrets.PUSH_TOKEN }} directory: ./dist @@ -68,7 +69,7 @@ jobs: - name: Upload run: yarn upload - if: ${{ success() && (github.event_name == 'push' || github.event_name == 'repository_dispatch') }} + if: ${{ steps.commit.outcome === 'success' && (github.event_name == 'push' || github.event_name == 'repository_dispatch') }} env: UPLOAD_REMOTE: ${{ secrets.UPLOAD_REMOTE }} UPLOAD_DIST: ${{ secrets.UPLOAD_DIST }}