-
Notifications
You must be signed in to change notification settings - Fork 41
32 lines (30 loc) · 898 Bytes
/
test.yml
File metadata and controls
32 lines (30 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Run Prohibited terms PR checker
on:
pull_request:
branches:
- draft
- staging
- prod
jobs:
check-files:
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
outputs:
canSkip: ${{ steps.Checker.outputs.canSkip }}
steps:
- name: Get files
uses: actions/checkout@v2
- name: Get tools
uses: actions/checkout@v2
with:
path: tools/
repository: openliberty/guides-common
- id: Checker
shell: bash
run: bash ./tools/pr-checker/checker.sh ${{ github.repository }} ${{ github.event.pull_request.number }} | tee checker.log
- name: Summary
if: always()
run: |
cat ./checker.log | tail -n +2;
echo "====== Examine logs in Checker ======"
if [ '${{ steps.Checker.outcome }}' != 'success' ]; then exit 1; fi