This commit is contained in:
Zamitto
2025-10-23 12:33:19 -03:00
parent 6545c7d7cd
commit 2529bdf5ca

View File

@@ -43,14 +43,10 @@ jobs:
# ssh-agent bash -c 'ssh-add ~/.ssh/id_rsa; git clone ssh://aur@aur.archlinux.org/hydra-launcher-bin.git'
git clone https://aur.archlinux.org/hydra-launcher-bin.git
cd hydra-launcher-bin
pwd
ls
- name: Checkout main repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get version to update
id: get-version
run: |
@@ -72,7 +68,6 @@ jobs:
run: |
pwd
ls
cd ~/hydra-launcher-bin
CURRENT_VERSION=$(grep '^pkgver=' hydra-launcher-bin/PKGBUILD | cut -d'=' -f2)
NEW_VERSION="${{ steps.get-version.outputs.version }}"
@@ -90,7 +85,6 @@ jobs:
- name: Update PKGBUILD and .SRCINFO
if: steps.check-update.outputs.update_needed == 'true'
run: |
cd ~/hydra-launcher-bin
node ../scripts/update-pkgver.js "${{ steps.get-version.outputs.version }}" ./PKGBUILD
updpkgsums
makepkg --printsrcinfo > .SRCINFO
@@ -98,14 +92,12 @@ jobs:
- 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: Show changes (workflow_dispatch only)
if: steps.check-update.outputs.update_needed == 'true' && github.event_name == 'workflow_dispatch'
run: |
cd ~/hydra-launcher-bin
echo "## Git Diff Preview"
echo "Changes that would be made:"
git diff PKGBUILD .SRCINFO || echo "No changes to show"
@@ -117,7 +109,6 @@ jobs:
- name: Commit and push changes (release only)
if: steps.check-update.outputs.update_needed == 'true' && github.event_name == 'release'
run: |
cd ~/hydra-launcher-bin
git add PKGBUILD .SRCINFO
if git diff --staged --quiet; then