From ffb3b5fea20fbb38973797d039c5acf87efec1f1 Mon Sep 17 00:00:00 2001 From: NayamAmarshe Date: Fri, 8 Mar 2024 17:36:35 +0530 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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