Skip to content

Commit

Permalink
Run lint as part of export
Browse files Browse the repository at this point in the history
  • Loading branch information
Johennes committed May 16, 2024
1 parent 3ad1d70 commit e2253fc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/generate-images-drawio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ jobs:
find "${{ env.DRAWIO_SRC }}" -name "*.$ext" -exec rm -v "{}" \;
done
lint:
runs-on: ubuntu-latest
needs: generate
uses: ./.github/workflows/lint.yml

commit:
runs-on: ubuntu-latest
needs: lint

steps:
- name: Add & Commit
uses: EndBug/add-and-commit@v9
with:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/generate-images-plantuml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ jobs:
rsync -v --recursive --include="*.$ext" --filter="-! */" "${{ env.PLANTUML_SRC }}"/* "${{ env.PLANTUML_OUT }}"
done
lint:
needs: generate
uses: ./.github/workflows/lint.yml

commit:
needs: lint
runs-on: ubuntu-latest

steps:
- name: Add & Commit
uses: EndBug/add-and-commit@v9
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- main
workflow_call:
workflow_dispatch:

jobs:
Expand All @@ -14,6 +15,7 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v4
if: ${{ github.event_name != 'workflow_call' }}

- name: Verify image references
run: |
Expand Down

0 comments on commit e2253fc

Please sign in to comment.