Commit generated readme outputs in workflow
This commit is contained in:
@@ -26,10 +26,12 @@ jobs:
|
|||||||
- name: Render model previews
|
- name: Render model previews
|
||||||
run: python build/scripts/render_client_items.py --manifest build/renameable-items.json --pack-root resourcepack --output-dir build
|
run: python build/scripts/render_client_items.py --manifest build/renameable-items.json --pack-root resourcepack --output-dir build
|
||||||
|
|
||||||
- name: Publish generated catalog artifacts
|
- name: Commit generated readme and renders
|
||||||
uses: actions/upload-artifact@v3
|
run: |
|
||||||
with:
|
git config user.name "Gitea Actions"
|
||||||
name: renameable-item-catalog
|
git config user.email "actions@gitea.local"
|
||||||
path: |
|
git add -f README.md build/renameable-items.json build/renameable-items-*.md build/renders
|
||||||
build
|
if ! git diff --cached --quiet; then
|
||||||
README.md
|
git commit -m "Update generated readme and renders"
|
||||||
|
git push origin HEAD:main
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user