mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 05:46:17 +00:00
fix
This commit is contained in:
11
.github/workflows/update-aur.yml
vendored
11
.github/workflows/update-aur.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user