Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NayamAmarshe authored Mar 8, 2024
1 parent 6f738c5 commit ffb3b5f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ffb3b5f

Please sign in to comment.