Fix YAML syntax and update DB format in workflow

This commit is contained in:
Mitsuba100
2026-03-23 15:14:58 +01:00
committed by GitHub
parent e0716aaaac
commit 0345f3e8af

View File

@@ -37,9 +37,8 @@ jobs:
cp hyprarch-repo.db.tar.gz hyprarch-repo.db
cp hyprarch-repo.files.tar.gz hyprarch-repo.files
- name: Generate Indices
- name: Generate Subfolder Index
run: |
# 1. Create the BASIC PYTHON-STYLE index for the x86_64 folder
cd x86_64
echo "<html><head><title>Index of /x86_64/</title></head><body style='font-family: monospace;'>" > index.html
echo "<h1>Index of /x86_64/</h1><hr><pre>" >> index.html
@@ -53,10 +52,9 @@ jobs:
done
echo "</pre><hr></body></html>" >> index.html
# 2. Create YOUR SPECIFIC LANDING PAGE for the Root folder
cd ..
cat <<'EOF' > index.html
<!DOCTYPE html>
- name: Generate Root Landing Page
run: |
echo '<!DOCTYPE html>
<html>
<head>
<title>HyprArch Repository</title>
@@ -85,8 +83,7 @@ Server = https://hyprarch-repo.stuple.net/$arch</pre>
<p><small>Automated by GitHub Actions</small></p>
</div>
</body>
</html>
EOF
</html>' > index.html
- name: Commit and Push changes
run: |
@@ -94,7 +91,7 @@ EOF
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 index indentation"
git commit -m "Fixed YAML syntax and DB format"
git push
else
echo "Nothing to change."