From 9c2bfe877e1de353fa9e22de0d3ac5154a91512b Mon Sep 17 00:00:00 2001 From: Pooja Saji <162815151+poojasaji1@users.noreply.github.com> Date: Thu, 13 Jun 2024 10:51:38 -0400 Subject: [PATCH] update superlinter to latest update superlinter to latest - address issue: https://github.com/OpenLiberty/guides-common/issues/1063 --- .github/workflows/test.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cae29d6..0f852fd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,8 +22,8 @@ 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() - uses: github/super-linter@v3.17.0 + if: "! github.event.pull_request.head.repo.fork" + uses: github/super-linter@latest env: VALIDATE_ALL_CODEBASE: false VALIDATE_JAVA: true @@ -35,10 +35,10 @@ jobs: DEFAULT_BRANCH: prod - name: Summary - if: always() + if: "! github.event.pull_request.head.repo.fork" 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 @@ -63,8 +63,10 @@ jobs: - name: Post tests if: always() run: | - logsPath=$(sudo find . -name "console.log"); - sudo cat $logsPath | sudo grep Launching + logsPath=$(sudo find . -name "console.log" | grep system); + sudo cat "$logsPath" | grep Launching + logsPath=$(sudo find . -name "console.log" | grep inventory); + sudo cat "$logsPath" | grep Launching - name: Archive system logs if failed if: failure() uses: actions/upload-artifact@v2