mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 05:46:17 +00:00
chore: update-aur
This commit is contained in:
31
.github/workflows/update-aur.yml
vendored
31
.github/workflows/update-aur.yml
vendored
@@ -12,16 +12,27 @@ jobs:
|
||||
image: archlinux:latest
|
||||
|
||||
steps:
|
||||
- name: Checkout main repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pacman -Syu --noconfirm
|
||||
pacman -S --noconfirm nodejs npm git base-devel openssh jq
|
||||
|
||||
- name: Clone AUR repository
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.AUR_SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan aur.archlinux.org > ~/.ssh/known_hosts
|
||||
cat ~/.ssh/known_hosts
|
||||
eval "$(ssh-agent -s)"
|
||||
ssh-add ~/.ssh/id_rsa
|
||||
git clone ssh://aur@aur.archlinux.org/hydra-launcher-bin.git
|
||||
|
||||
- name: Checkout main repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Get version to update
|
||||
id: get-version
|
||||
run: |
|
||||
@@ -38,16 +49,6 @@ jobs:
|
||||
|
||||
echo "Version to update: $VERSION"
|
||||
|
||||
- name: Clone AUR repository
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.AUR_SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts
|
||||
eval "$(ssh-agent -s)"
|
||||
ssh-add ~/.ssh/id_rsa
|
||||
git clone ssh://aur@aur.archlinux.org/hydra-launcher-bin.git
|
||||
|
||||
- name: Check if update is needed
|
||||
id: check-update
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user