From 0cb9debd88e61f42762a9482ae914b1c8c9110d1 Mon Sep 17 00:00:00 2001 From: Adrian Baumgart Date: Sun, 31 Mar 2024 21:52:13 +0200 Subject: [PATCH] Update fix-formatting-and-license.yml --- .github/workflows/fix-formatting-and-license.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/fix-formatting-and-license.yml b/.github/workflows/fix-formatting-and-license.yml index 3859239..7aeec68 100644 --- a/.github/workflows/fix-formatting-and-license.yml +++ b/.github/workflows/fix-formatting-and-license.yml @@ -3,8 +3,6 @@ name: Fix formatting and license file on: push: branches: [ "main" ] - pull_request: - branches: [ "main" ] jobs: build: @@ -35,14 +33,7 @@ jobs: run: dart format --output=none . - name: Update license file - run: flutter packages pub run license_generator generat + run: flutter packages pub run license_generator generate - name: Commit and push - run: | - git config --global user.name 'Github Actions' - git config --global user.email 'adrian@abmgrt.dev' - git add -A - if ! git diff-index --quiet HEAD; then - git commit -m "Auto-corrected formatting and license file" - git push - fi + uses: stefanzweifel/git-auto-commit-action@v5