Skip to content

Commit

Permalink
Update VERSION to v5.2.14
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and Ircama committed Nov 16, 2024
1 parent 2f28901 commit ae57291
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,20 @@ jobs:
ref: main
fetch-depth: 0 # Fetch all history for accurate commits and tags

- name: Update VERSION in python file ui.py
- name: Update VERSION in python file ui.py; commit and push updates
$filePath = "ui.py"
$VERSION = "${{ github.ref_name }}"
run: |
$VERSION = "${{ github.ref_name }}"
if ($VERSION.StartsWith('v')) {
$VERSION = $VERSION.Substring(1)
}
(Get-Content ui.py) -replace '^VERSION = ".*"$', "VERSION = `"$VERSION`"" | Set-Content ui.py
- name: Commit and push version update
run: |
(Get-Content $filePath) -replace '^VERSION = ".*"$', "VERSION = `"$VERSION`"" | Set-Content $filePath
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git add ui.py
git add $filePath
git commit -m "Update VERSION to ${{ github.ref_name }}"
git remote set-url origin https://Ircama:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git remote set-url origin https://${GITHUB_USER}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git push origin main
- name: Install Python
Expand Down
2 changes: 1 addition & 1 deletion ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from find_printers import PrinterScanner


VERSION = "5.1"
VERSION = "5.2.14"

NO_CONF_ERROR = (
"[ERROR] Please select a printer model and a valid IP address,"
Expand Down

0 comments on commit ae57291

Please sign in to comment.