From 0575c426e046d196aaab084b158859404e24ce74 Mon Sep 17 00:00:00 2001 From: eslam3bed <20760072+Eslam3bed@users.noreply.github.com> Date: Sun, 22 Sep 2024 21:53:00 +0300 Subject: [PATCH] update --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5cfde54..7d7753b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,14 +49,14 @@ jobs: git add . git commit -m "chore(release): $(node -p -e "require('./package.json').version") [skip ci]" git tag v$(node -p -e "require('./package.json').version") - echo "version_bumped=true" >> $GITHUB_ENV + echo "version_bumped=true" >> $GITHUB_OUTPUT else echo "No changes to commit." - echo "version_bumped=false" >> $GITHUB_ENV + echo "version_bumped=false" >> $GITHUB_OUTPUT fi - name: Push changes to main branch - if: env.version_bumped == 'true' + if: ${{ steps.tag.outputs.version_bumped }} == 'true' run: | git checkout main git push origin main --follow-tags