From dd928bb78a077604773f41f8c2f219ee43c4d704 Mon Sep 17 00:00:00 2001 From: Rimo <4203620+yizhoumo@users.noreply.github.com> Date: Thu, 14 Mar 2024 23:10:59 +0800 Subject: [PATCH] Update check-dist.yml to push dist (#61) --- .github/workflows/check-dist.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 5798200..6a1aa2a 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -62,3 +62,22 @@ jobs: with: name: 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