Skip to content

Commit 7801c01

Browse files
authored
Merge pull request #207 from OpenLiberty/staging
Merge staging to prod - update test.yml
2 parents 9cfba25 + 240d50b commit 7801c01

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ jobs:
2222
shell: bash
2323
run: bash ./tools/pr-checker/checker.sh ${{ github.repository }} ${{ github.event.pull_request.number }} | tee checker.log
2424
- id: Lint-Code-Base
25-
if: always()
26-
uses: github/super-linter@v3.17.0
25+
if: "! github.event.pull_request.head.repo.fork"
26+
uses: github/super-linter@latest
2727
env:
2828
VALIDATE_ALL_CODEBASE: false
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030
LINTER_RULES_PATH: ./tools/pr-checker/linters/
3131
DEFAULT_BRANCH: prod
3232
- name: Summary
33-
if: always()
33+
if: "! github.event.pull_request.head.repo.fork"
3434
run: |
35-
cat ./checker.log | tail -n +2; echo "====== Super Linter ======"
36-
cat ./super-linter.log | sed -n '/.*The script has completed.*/,$p' | tail -n +4 | sed 's/.*\(\[[A-Z]\+\]\)/\1/'
35+
< ./checker.log tail -n +2; echo "====== Super Linter ======"
36+
< ./super-linter.log sed -n '/.*The script has completed.*/,$p' | tail -n +4 | sed 's/.*\(\[[A-Z]\+\]\)/\1/'
3737
echo "====== Examine logs in Checker and Super-Linter steps for more details ======"
3838
if [ '${{ steps.Checker.outcome }}' != 'success' ] || [ '${{ steps.Lint-Code-Base.outcome }}' != 'success' ]; then exit 1; fi
3939
test-app:

0 commit comments

Comments
 (0)