ci: always execute tests on non-PRs (#13260)

This commit is contained in:
Ville Brofeldt 2021-02-22 08:23:34 +02:00 committed by GitHub
parent 73ce2f1ea7
commit 15567dd627
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,10 @@
# to check for python changes, run with CHECKS=python
# To check for frontend changes, run with CHECKS=frontend
# To check for python and frontend changes, run with CHECKS="python frontend"
if [[ -z ${PR_NUMBER} ]]; then
echo "Not a PR; Exiting with FAILURE code"
exit 1
fi
URL="https://api.github.com/repos/${GITHUB_REPO}/pulls/${PR_NUMBER}/files"
FILES=$(curl -s -X GET -G "${URL}" | jq -r '.[] | .filename')