Remove failed experiment to give feedback automatically

This commit is contained in:
Pieter Vander Vennet 2021-04-11 02:46:47 +02:00
parent 79fa72e593
commit e741ac5491
2 changed files with 2 additions and 20 deletions

View file

@ -32,21 +32,3 @@ 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 }}"
- 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 }}