Skip to content
9 changes: 8 additions & 1 deletion .github/workflows/spdx_license_bot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
dart pub global activate mason_cli
mason get

- name: 🧱 Mason Make
- name: 🧱 Mason Make (tool/spdx_license/test)
id: make
run: if [[ $(mason make spdx_license -q --licenses "[]" -o test --on-conflict overwrite --set-exit-if-changed) =~ "0 files changed" ]]; then echo "did_change=false"; else echo "did_change=true"; fi >> $GITHUB_ENV

Expand All @@ -41,6 +41,13 @@ jobs:
git config user.name VGV Bot
git config user.email vgvbot@users.noreply.github.com

- name: 🧱 Mason Make (lib/pub_license/spdx_license)
if: ${{ env.did_change == 'true' }}
run: |
cd ../..
mason make spdx_license -o lib/src/pub_license/ --on-conflict=overwrite
cd tool/spdx_license

- name: 📝 Create Pull Request
if: ${{ env.did_change == 'true' }}
uses: peter-evans/create-pull-request@v5.0.2
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/very_good_cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:

- name: Check Code Coverage
uses: VeryGoodOpenSource/very_good_coverage@v2.1.0
with:
exclude: "**/*.gen.dart"

pana:
runs-on: ubuntu-latest
Expand Down
Loading