Updating job name for better readability and simplifying failed jobs name handling

pull/42/head
Maksim Shilov 4 years ago
parent 0dc66b003c
commit 694c239fa8

@ -19,7 +19,7 @@ jobs:
image: 'https://avatars.githubusercontent.com/u/1525981?s=200&v=4' image: 'https://avatars.githubusercontent.com/u/1525981?s=200&v=4'
- name: 'PyPy' - name: 'PyPy'
image: 'https://avatars.githubusercontent.com/u/318667?s=200&v=4' image: 'https://avatars.githubusercontent.com/u/318667?s=200&v=4'
name: Searching for new tool versions name: 'Searching for new versions of ${{ matrix.tool.name }}'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -52,7 +52,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(",")[0].split("(")[-1] + ": $($_.html_url)"} ForEach-Object {$_.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