Fix DB format and update indices in workflow
This commit is contained in:
20
.github/workflows/update-repo.yml
vendored
20
.github/workflows/update-repo.yml
vendored
@@ -22,11 +22,17 @@ jobs:
|
|||||||
- name: Update Repository Database
|
- name: Update Repository Database
|
||||||
run: |
|
run: |
|
||||||
cd x86_64
|
cd x86_64
|
||||||
# Rebuild the DB
|
# Download a repo-add script that works on Ubuntu
|
||||||
tar -cvzf hyprarch-repo.db.tar.gz *.pkg.tar.zst
|
curl -L https://raw.githubusercontent.com/anthraxx/pacman-repo-add/master/repo-add -o repo-add
|
||||||
cp hyprarch-repo.db.tar.gz hyprarch-repo.files.tar.gz
|
chmod +x repo-add
|
||||||
|
|
||||||
|
# Use the real tool to build the database pacman expects
|
||||||
|
./repo-add hyprarch-repo.db.tar.gz *.pkg.tar.zst
|
||||||
|
|
||||||
|
# Clean up the tool so it doesn't get pushed to the repo
|
||||||
|
rm repo-add
|
||||||
|
|
||||||
# Fix symlinks for GitHub Pages
|
# Fix symlinks for GitHub Pages (actual files instead of symlinks)
|
||||||
rm -f hyprarch-repo.db hyprarch-repo.files
|
rm -f hyprarch-repo.db hyprarch-repo.files
|
||||||
cp hyprarch-repo.db.tar.gz hyprarch-repo.db
|
cp hyprarch-repo.db.tar.gz hyprarch-repo.db
|
||||||
cp hyprarch-repo.files.tar.gz hyprarch-repo.files
|
cp hyprarch-repo.files.tar.gz hyprarch-repo.files
|
||||||
@@ -68,8 +74,8 @@ jobs:
|
|||||||
<h1>🚀 HyprArch Custom Repository</h1>
|
<h1>🚀 HyprArch Custom Repository</h1>
|
||||||
<p>To use this repository, add the following to your <code>/etc/pacman.conf</code>:</p>
|
<p>To use this repository, add the following to your <code>/etc/pacman.conf</code>:</p>
|
||||||
<pre>[hyprarch-repo]
|
<pre>[hyprarch-repo]
|
||||||
SigLevel = Optional TrustAll
|
SigLevel = Optional TrustAll
|
||||||
Server = https://hyprarch-repo.stuple.net/\$arch</pre>
|
Server = https://hyprarch-repo.stuple.net/\$arch</pre>
|
||||||
|
|
||||||
<h2>📦 Available Packages</h2>
|
<h2>📦 Available Packages</h2>
|
||||||
<ul>
|
<ul>
|
||||||
@@ -88,7 +94,7 @@ jobs:
|
|||||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
git add .
|
git add .
|
||||||
if ! git diff-index --quiet HEAD; then
|
if ! git diff-index --quiet HEAD; then
|
||||||
git commit -m "Automated database and hybrid index update"
|
git commit -m "Fixed DB format and updated indices"
|
||||||
git push
|
git push
|
||||||
else
|
else
|
||||||
echo "Nothing to change."
|
echo "Nothing to change."
|
||||||
|
|||||||
Reference in New Issue
Block a user