Do not fail fast if matrix job fails and fixing job failure message

pull/42/head
Maksim Shilov 4 years ago
parent bca70ad898
commit 0817aa5e5c

@ -11,6 +11,7 @@ defaults:
jobs: jobs:
find-new-tool-versions: find-new-tool-versions:
strategy: strategy:
fail-fast: false
matrix: matrix:
tool: tool:
- name: 'Xamarin' - name: 'Xamarin'
@ -52,7 +53,7 @@ jobs:
$jobs_url = "$env:GITHUB_API_URL/repos/$env:GITHUB_REPOSITORY/actions/runs/$env:GITHUB_RUN_ID/jobs" $jobs_url = "$env:GITHUB_API_URL/repos/$env:GITHUB_REPOSITORY/actions/runs/$env:GITHUB_RUN_ID/jobs"
$failedJobs = (Invoke-RestMethod -Uri $jobs_url).jobs | $failedJobs = (Invoke-RestMethod -Uri $jobs_url).jobs |
Where-Object conclusion -eq "failure" | Where-Object conclusion -eq "failure" |
ForEach-Object {$_.name.split(" ")[-1] + ": $($_.html_url)"} ForEach-Object {"\n\t" + $_.name.split(" ")[-1] + ": $($_.html_url)"}
echo "::set-output name=failed-jobs::$failedJobs" echo "::set-output name=failed-jobs::$failedJobs"
- uses: ./.github/actions/send-slack-notification - uses: ./.github/actions/send-slack-notification
name: Send Slack notification about failure name: Send Slack notification about failure

Loading…
Cancel
Save