1
0

set version error fix

This commit is contained in:
Marco Maatz 2024-10-19 01:00:26 +02:00
parent d657989e79
commit 7d6ee1bf2e

View File

@ -16,10 +16,17 @@ jobs:
uses: actions/checkout@v4
- name: Set
run: |
git pull origin HEAD:${{ inputs.branch }}
echo "Setting Version to ${{ inputs.version }}"
npm version --no-git-tag-version ${{ inputs.version }}
- name: Commit version change
run: |
if git diff --quiet && git diff --cached --quiet; then
echo "No changes in the repository."
exit 0
fi
git config user.name "${{ vars.GIT_DEPLOY_NAME }}"
git config user.email "${{ vars.GIT_DEPLOY_MAIL }}"
git add package.json