From 5330209da46dca8bc5662a3f2375090087f5ce39 Mon Sep 17 00:00:00 2001 From: Mitsuba100 <82495539+Mitsuba100@users.noreply.github.com> Date: Wed, 11 Mar 2026 16:23:50 +0100 Subject: [PATCH] Refactor update-repo workflow for Ubuntu compatibility Updated the workflow to use a custom repo-add script instead of the package manager's repo-add. Removed unnecessary steps and adjusted commands for Ubuntu compatibility. --- .github/workflows/update-repo.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/update-repo.yml b/.github/workflows/update-repo.yml index 08a2416..22dadcc 100644 --- a/.github/workflows/update-repo.yml +++ b/.github/workflows/update-repo.yml @@ -9,9 +9,6 @@ on: jobs: update-db: runs-on: ubuntu-latest - container: - image: archlinux:latest - options: --user root # Ensure we are running as root to match container ownership steps: - name: Checkout code @@ -19,21 +16,22 @@ jobs: with: fetch-depth: 0 - - name: Install Dependencies + - name: Setup repo-add tools run: | - pacman -Sy --noconfirm pacman git - - - name: Fix Git Ownership - run: | - # This tells Git to ignore ownership checks for every folder on this runner - git config --global --add safe.directory '*' - + # Download the standalone repo-add script from Arch Linux + sudo apt-get update && sudo apt-get install -y bsdtar + curl -L https://gitlab.archlinux.org/pacman/pacman/-/raw/master/scripts/repo-add.sh.in -o repo-add + chmod +x repo-add + # Provide a dummy library path so it runs on Ubuntu + sed -i 's|@pkgdatadir@|/usr/share/pacman|g' repo-add + - name: Update Repository Database run: | cd x86_64 if ls *.pkg.tar.zst 1> /dev/null 2>&1; then echo "Updating database..." - repo-add hyprarch-repo.db.tar.gz *.pkg.tar.zst + # Run our downloaded repo-add + ../repo-add hyprarch-repo.db.tar.gz *.pkg.tar.zst # Break symlinks for GitHub Pages rm -f hyprarch-repo.db hyprarch-repo.files