Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/actions/tests/failure_notifications/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ inputs:
description: "Slack channel for notifications"
required: true


runs:
using: "composite"
steps:
Expand All @@ -42,4 +41,10 @@ runs:
FAILURE_NOTIFICATIONS_URL: ${{ inputs.notifications_url }}
NOTIFICATION_SLACK_CHANNEL: ${{ inputs.slack_channel }}
shell: bash
run: ./.github/actions/scripts/notification-scripts/failure_notification.py --job_subname "${{ inputs.job_subname }}"
# on self-hosted runners all python packages are preinstalled but on github-hosted they will be missing
run: |
if [[ "${RUNNER_ENVIRONMENT}" != "self-hosted" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm.. we used to have an install-deps script I believe, that was called from failure_notification.sh, for this exact purpose, but we seemed to have killed it at some point. Guess this is fine too.

echo "Not a self-hosted runner. Installing required Python packages..."
python3 -m pip install GitPython requests
fi
${GITHUB_ACTION_PATH}/../../scripts/notification-scripts/failure_notification.py --job_subname "${{ inputs.job_subname }}"