Update get-python-versions.yml

This commit is contained in:
Alice King Tai Poon 2022-06-05 15:39:23 +08:00 committed by GitHub
parent 8b0bd3125c
commit 353fb4d4d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,11 +13,11 @@ defaults:
jobs:
find_new_versions:
name: Find new versions
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
outputs:
versions_output: ${{ steps.Get_new_versions.outputs.TOOL_VERSIONS }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@main
with:
submodules: true
@ -27,12 +27,12 @@ jobs:
check_new_versions:
name: Check new versions
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: find_new_versions
env:
TOOL_VERSIONS: ${{needs.find_new_versions.outputs.versions_output}}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@main
with:
submodules: true
@ -56,13 +56,13 @@ jobs:
trigger_builds:
name: Trigger builds
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [find_new_versions, check_new_versions]
env:
TOOL_VERSIONS: ${{needs.find_new_versions.outputs.versions_output}}
environment: Get Available Tools Versions - Publishing Approval
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@main
with:
submodules: true
@ -77,11 +77,11 @@ jobs:
check_build:
name: Check build for failures
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [find_new_versions, check_new_versions, trigger_builds]
if: failure()
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@main
with:
submodules: true
@ -92,4 +92,4 @@ jobs:
./helpers/get-new-tool-versions/send-slack-notification.ps1 -Url "${{ secrets.SLACK_CHANNEL_URL }}" `
-ToolName "${{ env.TOOL_NAME }}" `
-Text "$message" `
-ImageUrl "https://avatars.githubusercontent.com/u/1525981?s=200&v=4"
-ImageUrl "https://avatars.githubusercontent.com/u/1525981?s=200&v=4"