diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8ae40b0..783f3f9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -39,10 +39,12 @@ jobs: - name: Commit changes run: | - git config user.name "${{ github.actor }}" - git config user.email "${{ github.actor }}@users.noreply.github.com" - git add src/lib/constants/upscayl-version.ts - git commit -m "Update Upscayl version to ${{ steps.get-version.outputs.version }}" + if [[ "$(echo "${{ steps.get-version.outputs.version }}")" != "$(cat src/lib/constants/upscayl-version.ts | grep -oP "(?<=UPSCAYL_VERSION = ')(.*)(?=';)")" ]]; then + git config user.name "${{ github.actor }}" + git config user.email "${{ github.actor }}@users.noreply.github.com" + git add src/lib/constants/upscayl-version.ts + git commit -m "Update Upscayl version to ${{ steps.get-version.outputs.version }}" + fi - name: Push changes uses: ad-m/github-push-action@v0.8.0