diff --git a/.gitea/workflows/autofix.ci.yaml b/.gitea/workflows/autofix.ci.yaml index 02d807b..bf92155 100644 --- a/.gitea/workflows/autofix.ci.yaml +++ b/.gitea/workflows/autofix.ci.yaml @@ -44,4 +44,13 @@ jobs: - name: Format run: pnpm run fmt - - uses: autofix-ci/action@v1 + - name: Commit fixes + run: | + git config user.name "autofix" + git config user.email "noreply@autofix.ci" + git diff --quiet && git diff --staged --quiet || \ + git commit -am "autofix: format" && \ + git push "http://oauth2:${GITHUB_TOKEN}@${GITEA_HOST}:3000/${{ github.repository }}.git" HEAD:${{ github.head_ref }} + env: + GITHUB_TOKEN: ${{ github.token }} + GITEA_HOST: ${{ secrets.GITEA_HOST_IP }}