diff --git a/.gitea/workflows/setPackageVersion.yaml b/.gitea/workflows/setPackageVersion.yaml index bb6ce43..73ef13b 100644 --- a/.gitea/workflows/setPackageVersion.yaml +++ b/.gitea/workflows/setPackageVersion.yaml @@ -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