Skip to content

Commit 4177506

Browse files
authored
Refactor workflow to upload index.json as artifact
Removed commit and push step for index.json and added upload as artifact step.
1 parent c3de1a5 commit 4177506

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

.github/workflows/generate-index.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,8 @@ jobs:
9090
echo "📋 Generated index.json:"
9191
cat index.json | jq .
9292
93-
- name: Commit and push if changed
94-
run: |
95-
git config --local user.name 'OpenAnki Bot'
96-
git config --local user.email 'bot@openanki.app'
97-
git add index.json
98-
99-
# Only commit if there are changes
100-
if git diff --staged --quiet; then
101-
echo "No changes to index.json"
102-
else
103-
git commit -m "🔄 Auto-update deck index"
104-
git push
105-
fi
93+
- name: Upload index.json as artifact
94+
uses: actions/upload-artifact@v4
95+
with:
96+
name: deck-index
97+
path: index.json

0 commit comments

Comments
 (0)