Update check-dist.yml to push dist (#61)

This commit is contained in:
Rimo
2024-03-14 23:10:59 +08:00
committed by GitHub
parent b46896c92b
commit dd928bb78a

View File

@@ -62,3 +62,22 @@ jobs:
with: with:
name: dist name: dist
path: dist/ path: dist/
push-dist:
name: Push dist/
needs: check-dist
if: ${{ failure() }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: actions/download-artifact@v4
- run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add dist
git commit -m "Generate dist"
git push