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