From 0e6938e573d9f70ea714926565010001771172b2 Mon Sep 17 00:00:00 2001 From: Siwan Yang <123605713+siwany@users.noreply.github.com> Date: Mon, 27 May 2024 11:34:51 -0400 Subject: [PATCH] Update test.yml (#187) * updates superlinter to latest Signed-off-by: Siwan Yang * update superlinter to latest Signed-off-by: Siwan Yang --------- Signed-off-by: Siwan Yang Co-authored-by: Gilbert Kwan --- .github/workflows/test.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8d9eb13..dcd1c68 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_KUBERNETES_KUBEVAL: false @@ -31,10 +31,10 @@ jobs: LINTER_RULES_PATH: ./tools/pr-checker/linters/ 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 test-app: