File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
.github/actions/tests/failure_notifications Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ inputs:
2121 description : " Slack channel for notifications"
2222 required : true
2323
24-
2524runs :
2625 using : " composite"
2726 steps :
4241 FAILURE_NOTIFICATIONS_URL : ${{ inputs.notifications_url }}
4342 NOTIFICATION_SLACK_CHANNEL : ${{ inputs.slack_channel }}
4443 shell : bash
45- run : ./.github/actions/scripts/notification-scripts/failure_notification.py --job_subname "${{ inputs.job_subname }}"
44+ # on self-hosted runners all python packages are preinstalled but on github-hosted they will be missing
45+ run : |
46+ if [[ "${RUNNER_ENVIRONMENT}" != "self-hosted" ]]; then
47+ echo "Not a self-hosted runner. Installing required Python packages..."
48+ python3 -m pip install GitPython requests
49+ fi
50+ ${GITHUB_ACTION_PATH}/../../scripts/notification-scripts/failure_notification.py --job_subname "${{ inputs.job_subname }}"
You can’t perform that action at this time.
0 commit comments