Skip to content

Commit a71cf25

Browse files
committed
FFS do your job
1 parent 79dd7e2 commit a71cf25

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎.github/workflows/update-index.yml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,13 @@ jobs:
6868
6969
git config --global user.name "F-Droid Bot"
7070
git config --global user.email "bot@example.com"
71-
git add index.* repo/ metadata/
71+
72+
# Add files that exist
73+
git add repo/ metadata/ || true
74+
[ -f index.xml ] && git add index.xml || true
75+
[ -f index-v1.json ] && git add index-v1.json || true
76+
[ -f index-v2.json ] && git add index-v2.json || true
77+
7278
if ! git diff --staged --quiet; then
7379
git commit -m "Update F-Droid index"
7480
git push

0 commit comments

Comments
 (0)