mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-18 00:33:59 +00:00
Merge branch 'main' into translation-update
This commit is contained in:
17
.github/workflows/update-aur.yml
vendored
17
.github/workflows/update-aur.yml
vendored
@@ -80,7 +80,6 @@ jobs:
|
||||
run: |
|
||||
CURRENT_VERSION=$(grep '^pkgver=' hydra-launcher-bin/PKGBUILD | cut -d'=' -f2)
|
||||
NEW_VERSION="${{ steps.get-version.outputs.version }}"
|
||||
NEW_VERSION="3.7.0"
|
||||
|
||||
echo "Current AUR version: $CURRENT_VERSION"
|
||||
echo "New version: $NEW_VERSION"
|
||||
@@ -99,7 +98,6 @@ jobs:
|
||||
# Update pkgver in PKGBUILD
|
||||
cd hydra-launcher-bin
|
||||
NEW_VERSION="${{ steps.get-version.outputs.version }}"
|
||||
NEW_VERSION=3.7.0
|
||||
|
||||
echo "Updating PKGBUILD pkgver to $NEW_VERSION"
|
||||
|
||||
@@ -115,17 +113,14 @@ jobs:
|
||||
sudo -u builder updpkgsums
|
||||
sudo -u builder makepkg --printsrcinfo > .SRCINFO
|
||||
|
||||
- name: Configure Git
|
||||
if: steps.check-update.outputs.update_needed == 'true'
|
||||
run: |
|
||||
cd hydra-launcher-bin
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Commit and push changes
|
||||
if: steps.check-update.outputs.update_needed == 'true'
|
||||
run: |
|
||||
cd hydra-launcher-bin
|
||||
git config --global --add safe.directory .
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
git add PKGBUILD .SRCINFO
|
||||
|
||||
echo "## Git Diff Preview"
|
||||
@@ -139,10 +134,10 @@ jobs:
|
||||
if git diff --staged --quiet; then
|
||||
echo "No changes to commit"
|
||||
else
|
||||
COMMIT_MSG="Update to ${{ steps.get-version.outputs.version }} (automated release update)"
|
||||
COMMIT_MSG="v${{ steps.get-version.outputs.version }}"
|
||||
|
||||
git commit -m "$COMMIT_MSG"
|
||||
# git push origin master
|
||||
git push origin master
|
||||
echo "Successfully updated AUR package to version ${{ steps.get-version.outputs.version }}"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user