mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-10 03:13:23 +00:00
Update workflow tasks (#57)
This commit is contained in:
committed by
GitHub
parent
2c15878a9d
commit
c08a90cad6
2
.github/workflows/common_tests.yml
vendored
2
.github/workflows/common_tests.yml
vendored
@@ -7,7 +7,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install Pester
|
- name: Install Pester
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|||||||
6
.github/workflows/get-tools-new-versions.yml
vendored
6
.github/workflows/get-tools-new-versions.yml
vendored
@@ -42,7 +42,7 @@ jobs:
|
|||||||
name: 'Searching for new versions of ${{ matrix.tool.name }}'
|
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@v3
|
||||||
- id: get-new-tool-versions
|
- id: get-new-tool-versions
|
||||||
name: Get new tool versions
|
name: Get new tool versions
|
||||||
run: |
|
run: |
|
||||||
@@ -51,7 +51,7 @@ jobs:
|
|||||||
-ReleasesUrl ${{ matrix.tool.releases-url }} `
|
-ReleasesUrl ${{ matrix.tool.releases-url }} `
|
||||||
-FilterParameter ${{ matrix.tool.filter-parameter }} `
|
-FilterParameter ${{ matrix.tool.filter-parameter }} `
|
||||||
-FilterArch ${{ matrix.tool.filter-arch }}
|
-FilterArch ${{ matrix.tool.filter-arch }}
|
||||||
echo "::set-output name=versions-output::$versionsOutput"
|
echo "versions-output=$versionsOutput" >> $GITHUB_OUTPUT
|
||||||
- name: Check versions
|
- name: Check versions
|
||||||
if: steps.get-new-tool-versions.outputs.versions-output == ''
|
if: steps.get-new-tool-versions.outputs.versions-output == ''
|
||||||
run: Write-Host "No new versions found"
|
run: Write-Host "No new versions found"
|
||||||
@@ -79,7 +79,7 @@ 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 {"\n\t" + $_.name.split(" ")[-1] + ": $($_.html_url)"}
|
ForEach-Object {"\n\t" + $_.name.split(" ")[-1] + ": $($_.html_url)"}
|
||||||
echo "::set-output name=failed-jobs::$failedJobs"
|
echo "failed-jobs=$failedJobs" >> $GITHUB_OUTPUT
|
||||||
- uses: ./.github/actions/send-slack-notification
|
- uses: ./.github/actions/send-slack-notification
|
||||||
name: Send Slack notification about failure
|
name: Send Slack notification about failure
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user