Changes and updates to support better, more reliable

checkouts of PRs from remote forks and better
ESCU app building.  Still in testing phases.
This commit is contained in:
pyth0n1c
2022-02-03 17:15:45 -08:00
parent f1ebd802e8
commit f793a802ec
4 changed files with 265 additions and 95 deletions
+2 -2
View File
@@ -81,8 +81,8 @@ jobs:
# Note that scheduled actions ONLY run on the default branch, so it won't run on all other branches!
echo "Running a nightly test on all detections OR a commit was made directly to develop"
python detection_testing_execution.py run --branch develop --mode all --mock --config_file test_config_github_actions.json
elif [[ ! -z "${{ github.event.pull_request.head.ref }}" && ! -z "${{ github.event.pull_request.number }}" ]]; then
echo "Pull request from source branch [${{ github.event.pull_request.head.ref }}] for PR number [${{ github.event.issue.number }}]"
elif [[ ${{ github.event_name }} == pull_request && ! -z "${{ github.event.pull_request.number }}" ]]; then
echo "Pull request from source branch [${{ github.event.pull_request.head.ref }}] for PR number [${{ github.event.pull_request.number }}]"
python detection_testing_execution.py run --branch ${{ github.event.pull_request.head.ref }} --pr_number ${{ github.event.pull_request.number }} --mode changes --mock --config_file test_config_github_actions.json
else
echo "Push from branch [${{ steps.vars.outputs.branch }}]"