Remove failed experiment to give feedback automatically
This commit is contained in:
parent
79fa72e593
commit
e741ac5491
2 changed files with 2 additions and 20 deletions
18
.github/workflows/pull_request_check.yml
vendored
18
.github/workflows/pull_request_check.yml
vendored
|
@ -32,21 +32,3 @@ jobs:
|
||||||
|
|
||||||
- name: Validate license info
|
- name: Validate license info
|
||||||
run: npm run validate:licenses
|
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 }}"
|
|
||||||
|
|
||||||
- name: Comment PR
|
|
||||||
uses: allthatjazzleo/actions-pull-request-add-comment@master
|
|
||||||
if: >-
|
|
||||||
env.VALIDATION_FAILED == 'true'
|
|
||||||
with:
|
|
||||||
# message: 'yoyo🤙🏻'
|
|
||||||
message: "cat layer_report.txt missing_licenses.txt"
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
@ -17,8 +17,8 @@
|
||||||
"generate:docs": "ts-node scripts/generateDocs.ts",
|
"generate:docs": "ts-node scripts/generateDocs.ts",
|
||||||
"generate:layeroverview": "ts-node scripts/generateLayerOverview.ts --no-fail",
|
"generate:layeroverview": "ts-node scripts/generateLayerOverview.ts --no-fail",
|
||||||
"generate:licenses": "ts-node scripts/generateLicenseInfo.ts --no-fail",
|
"generate:licenses": "ts-node scripts/generateLicenseInfo.ts --no-fail",
|
||||||
"validate:layeroverview": "ts-node scripts/generateLayerOverview.ts --report --no-fail",
|
"validate:layeroverview": "ts-node scripts/generateLayerOverview.ts --report",
|
||||||
"validate:licenses": "ts-node scripts/generateLicenseInfo.ts --report --no-fail",
|
"validate:licenses": "ts-node scripts/generateLicenseInfo.ts --report",
|
||||||
"optimize-images": "cd assets/generated/ && find -name '*.png' -exec optipng '{}' \\; && echo 'PNGs are optimized'",
|
"optimize-images": "cd assets/generated/ && find -name '*.png' -exec optipng '{}' \\; && echo 'PNGs are optimized'",
|
||||||
"generate": "npm run generate:images && npm run generate:translations && npm run generate:licenses",
|
"generate": "npm run generate:images && npm run generate:translations && npm run generate:licenses",
|
||||||
"build": "rm -rf dist/ && npm run generate && parcel build --public-url ./ *.html assets/** assets/**/** assets/**/**/** vendor/* vendor/*/*",
|
"build": "rm -rf dist/ && npm run generate && parcel build --public-url ./ *.html assets/** assets/**/** assets/**/**/** vendor/* vendor/*/*",
|
||||||
|
|
Loading…
Reference in a new issue