From 4cfcd634d6556711fa0ae17940529b8e3de62990 Mon Sep 17 00:00:00 2001 From: Jacob Hummer Date: Sat, 13 Apr 2024 16:49:50 -0500 Subject: [PATCH] Update npm-generate.yml --- .github/workflows/npm-generate.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-generate.yml b/.github/workflows/npm-generate.yml index 0005cdd..e60a2ee 100644 --- a/.github/workflows/npm-generate.yml +++ b/.github/workflows/npm-generate.yml @@ -35,11 +35,12 @@ jobs: git config --global user.name "actions[bot]" git config --global user.email "actions@github.com" git add -A - git commit -m "Automated changes" + git commit -m "Automated changes" || exit 0 git push -u origin main + echo "pushed=true" >> "$GITHUB_OUTPUT" gh-release-create: needs: npm-generate - if: needs.npm-generate.outputs.pushed + if: fromJSON(needs.npm-generate.outputs.pushed) permissions: contents: write runs-on: windows-latest