diff --git a/.github/actions/lint-drawio/action.yml b/.github/actions/lint-drawio/action.yml deleted file mode 100644 index 762e1880..00000000 --- a/.github/actions/lint-drawio/action.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Lint draw.io - -runs: - using: "composite" - steps: - - name: Verify number of diagrams - shell: bash - run: | - function err { - >&2 echo -e "\033[0;31m$@\033[0m" - } - - rc=0 - - while read -r file; do - echo "Checking $file" - - if [[ $(grep "&2 echo -e "\033[0;31m$@\033[0m" - } - - rc=0 - - while read -r file; do - echo "Checking $file" - - if grep -qE "^@startuml\s+." "$file"; then - err "$file contains forbidden output name in @startuml" - rc=1 - fi - done < <(find . -name "*.puml") - - exit $rc diff --git a/.github/workflows/generate-images.yml b/.github/workflows/generate-images.yml index 1f756b99..b3847e20 100644 --- a/.github/workflows/generate-images.yml +++ b/.github/workflows/generate-images.yml @@ -26,7 +26,7 @@ jobs: uses: actions/checkout@v4 - name: Lint draw.io sources - uses: ./.github/actions/lint-drawio + uses: gematik/github-image-actions/.github/actions/lint-drawio@2b70671f414528810d7d1e2236a73137ca2857a9 - name: Set up Xvfb & draw.io desktop run: | @@ -69,7 +69,7 @@ jobs: uses: actions/checkout@v4 - name: Lint PlantUML sources - uses: ./.github/actions/lint-plantuml + uses: gematik/github-image-actions/.github/actions/lint-plantuml@2b70671f414528810d7d1e2236a73137ca2857a9 - name: Set up Java uses: actions/setup-java@v4 @@ -132,7 +132,7 @@ jobs: path: ${{ env.OUTDIR }} - name: Lint AsciiDoc - uses: gematik/github-image-actions/.github/actions/lint-asciidoc@3cf56f699ca4390d49689454336792c1ad787f83 + uses: gematik/github-image-actions/.github/actions/lint-asciidoc@2b70671f414528810d7d1e2236a73137ca2857a9 - name: Add & Commit uses: EndBug/add-and-commit@v9 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9fa57070..cd3730db 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -27,7 +27,7 @@ jobs: uses: actions/checkout@v4 - name: Lint - uses: ./.github/actions/lint-drawio + uses: gematik/github-image-actions/.github/actions/lint-drawio@2b70671f414528810d7d1e2236a73137ca2857a9 jsonschema: runs-on: ubuntu-latest @@ -47,4 +47,4 @@ jobs: uses: actions/checkout@v4 - name: Lint - uses: ./.github/actions/lint-plantuml + uses: gematik/github-image-actions/.github/actions/lint-plantuml@2b70671f414528810d7d1e2236a73137ca2857a9