Skip to content

Commit 4f7801e

Browse files
authored
Merge pull request #195 from OpenLiberty/staging
Merge staging to prod - update test.yml
2 parents 1346648 + a721f26 commit 4f7801e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: .github/workflows/test.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ 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
VALIDATE_CSS: false
@@ -33,10 +33,10 @@ jobs:
3333
LINTER_RULES_PATH: ./tools/pr-checker/linters/
3434
DEFAULT_BRANCH: prod
3535
- name: Summary
36-
if: always()
36+
if: "! github.event.pull_request.head.repo.fork"
3737
run: |
38-
cat ./checker.log | tail -n +2; echo "====== Super Linter ======"
39-
cat ./super-linter.log | sed -n '/.*The script has completed.*/,$p' | tail -n +4 | sed 's/.*\(\[[A-Z]\+\]\)/\1/'
38+
< ./checker.log tail -n +2; echo "====== Super Linter ======"
39+
< ./super-linter.log sed -n '/.*The script has completed.*/,$p' | tail -n +4 | sed 's/.*\(\[[A-Z]\+\]\)/\1/'
4040
echo "====== Examine logs in Checker and Super-Linter steps for more details ======"
4141
if [ '${{ steps.Checker.outcome }}' != 'success' ] || [ '${{ steps.Lint-Code-Base.outcome }}' != 'success' ]; then exit 1; fi
4242
test-app:
@@ -59,7 +59,7 @@ jobs:
5959
if: always()
6060
run: |
6161
logsPath=$(sudo find . -name "console.log");
62-
sudo cat $logsPath | sudo grep Launching
62+
sudo cat "$logsPath" | sudo grep Launching
6363
- name: Archive server logs if failed
6464
if: failure()
6565
uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)