From 739b837be37e79cee1da0f3fa51888441ce121ee Mon Sep 17 00:00:00 2001 From: Siwan Yang <123605713+siwany@users.noreply.github.com> Date: Wed, 22 May 2024 13:09:48 -0400 Subject: [PATCH 1/2] Update test.yml update superlinter to latest --- .github/workflows/test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 629baa8..054b394 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,7 +24,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 }} @@ -33,8 +33,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: @@ -59,7 +59,7 @@ jobs: if: always() run: | logsPath=$(sudo find . -name "console.log"); - sudo cat $logsPath | sudo grep Launching + sudo cat "$logsPath" | sudo grep Launching - name: Archive server logs if failed if: failure() uses: actions/upload-artifact@v2 From 923bfa20b6de13ffc90dca4f8e94dffe2f38cefb Mon Sep 17 00:00:00 2001 From: Siwan Yang <123605713+siwany@users.noreply.github.com> Date: Wed, 22 May 2024 16:36:07 -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 054b394..2eec58a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,7 +23,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 @@ -31,7 +31,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/'