Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Eslam3bed committed Sep 22, 2024
1 parent c76aabc commit 0575c42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0575c42

Please sign in to comment.