shlink-manager/.github/workflows/fix-formatting-and-license.yml

40 lines
858 B
YAML
Raw Normal View History

2024-03-31 21:29:41 +02:00
name: Fix formatting and license file
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
2024-03-31 21:35:48 +02:00
2024-03-31 21:38:12 +02:00
- name: Set up JDK
uses: actions/setup-java@v4
2024-03-31 21:35:48 +02:00
with:
2024-03-31 21:38:12 +02:00
distribution: 'oracle'
java-version: '21'
2024-03-31 21:35:48 +02:00
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Setup Flutter SDK
uses: flutter-actions/setup-flutter@v2
with:
channel: stable
version: 3.13.7
2024-03-31 21:29:41 +02:00
- name: Install dependencies
run: dart pub get
- name: Verify formatting
2024-03-31 21:41:11 +02:00
run: dart format --output=none .
2024-03-31 21:29:41 +02:00
- name: Update license file
2024-03-31 21:52:13 +02:00
run: flutter packages pub run license_generator generate
2024-03-31 21:29:41 +02:00
- name: Commit and push
2024-03-31 21:52:13 +02:00
uses: stefanzweifel/git-auto-commit-action@v5