From 04e3eba2a889fbb2d1776b880a27d81a3b5b39fe Mon Sep 17 00:00:00 2001 From: Siwan Yang <123605713+siwany@users.noreply.github.com> Date: Tue, 21 May 2024 15:23:42 -0400 Subject: [PATCH 1/2] Update test.yml Update superlinter - address issue: https://github.com/OpenLiberty/guides-common/issues/1063 --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 37be7a6..7379358 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,7 +23,7 @@ jobs: run: bash ./tools/pr-checker/checker.sh ${{ github.repository }} ${{ github.event.pull_request.number }} | tee checker.log - id: Lint-Code-Base if: always() - uses: github/super-linter@v3.17.0 + uses: github/super-linter@latest env: VALIDATE_ALL_CODEBASE: false GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -32,8 +32,8 @@ jobs: - name: Summary if: always() run: | - cat ./checker.log | tail -n +2; echo "====== Super Linter ======" - cat ./super-linter.log | sed -n '/.*The script has completed.*/,$p' | tail -n +4 | sed 's/.*\(\[[A-Z]\+\]\)/\1/' + < ./checker.log tail -n +2; echo "====== Super Linter ======" + < ./super-linter.log sed -n '/.*The script has completed.*/,$p' | tail -n +4 | sed 's/.*\(\[[A-Z]\+\]\)/\1/' echo "====== Examine logs in Checker and Super-Linter steps for more details ======" if [ '${{ steps.Checker.outcome }}' != 'success' ] || [ '${{ steps.Lint-Code-Base.outcome }}' != 'success' ]; then exit 1; fi test-app: From a62b2cc256c228c7ffab3894e14896ab0264a2c2 Mon Sep 17 00:00:00 2001 From: Siwan Yang <123605713+siwany@users.noreply.github.com> Date: Mon, 27 May 2024 17:54:38 -0400 Subject: [PATCH 2/2] Update test.yml update always --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7379358..f73f4a8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,7 @@ jobs: shell: bash run: bash ./tools/pr-checker/checker.sh ${{ github.repository }} ${{ github.event.pull_request.number }} | tee checker.log - id: Lint-Code-Base - if: always() + if: "! github.event.pull_request.head.repo.fork" uses: github/super-linter@latest env: VALIDATE_ALL_CODEBASE: false @@ -30,7 +30,7 @@ jobs: LINTER_RULES_PATH: ./tools/pr-checker/linters/ DEFAULT_BRANCH: prod - name: Summary - if: always() + if: "! github.event.pull_request.head.repo.fork" run: | < ./checker.log tail -n +2; echo "====== Super Linter ======" < ./super-linter.log sed -n '/.*The script has completed.*/,$p' | tail -n +4 | sed 's/.*\(\[[A-Z]\+\]\)/\1/'