Refactor comments and update HTML generation

This commit is contained in:
Mitsuba100
2026-03-23 15:13:57 +01:00
committed by GitHub
parent cb1878ce6c
commit e0716aaaac

View File

@@ -29,10 +29,10 @@ jobs:
# 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
# Clean up the tool
rm repo-add
# Fix symlinks for GitHub Pages (actual files instead of symlinks)
# Fix symlinks for GitHub Pages
rm -f hyprarch-repo.db hyprarch-repo.files
cp hyprarch-repo.db.tar.gz hyprarch-repo.db
cp hyprarch-repo.files.tar.gz hyprarch-repo.files
@@ -55,7 +55,7 @@ jobs:
# 2. Create YOUR SPECIFIC LANDING PAGE for the Root folder
cd ..
cat <<EOF > index.html
cat <<'EOF' > index.html
<!DOCTYPE html>
<html>
<head>
@@ -75,7 +75,7 @@ jobs:
<p>To use this repository, add the following to your <code>/etc/pacman.conf</code>:</p>
<pre>[hyprarch-repo]
SigLevel = Optional TrustAll
Server = https://hyprarch-repo.stuple.net/\$arch</pre>
Server = https://hyprarch-repo.stuple.net/$arch</pre>
<h2>📦 Available Packages</h2>
<ul>
@@ -94,7 +94,7 @@ Server = https://hyprarch-repo.stuple.net/\$arch</pre>
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
if ! git diff-index --quiet HEAD; then
git commit -m "Fixed DB format and updated indices"
git commit -m "Fixed DB format and index indentation"
git push
else
echo "Nothing to change."