forked from MapComplete/MapComplete
Experimenting with GH actions
This commit is contained in:
parent
04b83311f7
commit
5ca83a4c03
4 changed files with 41 additions and 31 deletions
13
.github/workflows/pull_request_check.yml
vendored
13
.github/workflows/pull_request_check.yml
vendored
|
@ -2,7 +2,10 @@ name: Pull request check
|
|||
on:
|
||||
pull_request:
|
||||
types: [opened, edited, synchronize, ready_for_review, review_requested]
|
||||
|
||||
push:
|
||||
- master
|
||||
- develop
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -33,3 +36,11 @@ jobs:
|
|||
- name: Validate license info
|
||||
run: npm run validate:licenses
|
||||
|
||||
- name: Set failure key
|
||||
run: |
|
||||
if [[ -f "layer_report.txt" || -f "missing_licenses.txt" ]]; then
|
||||
echo "VALIDATION_FAILED=true" >>$GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: Test variable
|
||||
run: echo "${{ env.VALIDATION_FAILED }}"
|
Loading…
Add table
Add a link
Reference in a new issue