mirror of
https://github.com/rainloreley/shlink-manager.git
synced 2024-12-04 05:33:01 +01:00
Update fix-formatting-and-license.yml
This commit is contained in:
parent
508a392a94
commit
0cb9debd88
|
@ -3,8 +3,6 @@ name: Fix formatting and license file
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
pull_request:
|
|
||||||
branches: [ "main" ]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -35,14 +33,7 @@ jobs:
|
||||||
run: dart format --output=none .
|
run: dart format --output=none .
|
||||||
|
|
||||||
- name: Update license file
|
- name: Update license file
|
||||||
run: flutter packages pub run license_generator generat
|
run: flutter packages pub run license_generator generate
|
||||||
|
|
||||||
- name: Commit and push
|
- name: Commit and push
|
||||||
run: |
|
uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
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
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user