Update workflow task (#196)

* Update workflow task

* use $env:GITHUB_OUTPUT

* update submodule
This commit is contained in:
Aleksandr Chebotov
2022-10-31 15:12:41 +01:00
committed by GitHub
parent 379db95d31
commit 1c70aa4fc9
9 changed files with 24 additions and 24 deletions

View File

@ -42,7 +42,7 @@ jobs:
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
@ -53,7 +53,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2
# Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
@ -67,4 +67,4 @@ jobs:
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2

View File

@ -11,7 +11,7 @@ jobs:
name: Create Pull Request
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

View File

@ -18,7 +18,7 @@ jobs:
outputs:
versions_output: ${{ steps.Get_new_versions.outputs.TOOL_VERSIONS }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
@ -33,7 +33,7 @@ jobs:
env:
TOOL_VERSIONS: ${{needs.find_new_versions.outputs.versions_output}}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
@ -63,7 +63,7 @@ jobs:
TOOL_VERSIONS: ${{needs.find_new_versions.outputs.versions_output}}
environment: Get Available Tools Versions - Publishing Approval
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
@ -82,7 +82,7 @@ jobs:
needs: [find_new_versions, check_new_versions, trigger_builds]
if: failure()
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

View File

@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: true
@ -21,7 +21,7 @@ jobs:
Install-Module Pester -Force -Scope CurrentUser
- name: Run tests
shell: pwsh
shell: pwsh
run: |
Import-Module Pester
Invoke-Pester -Configuration @{

View File

@ -56,7 +56,7 @@ jobs:
'arch' = $arch
}
}
echo "::set-output name=matrix::$($matrix | ConvertTo-Json -Compress)"
echo "matrix=$($matrix | ConvertTo-Json -Compress)" >> $env:GITHUB_OUTPUT
build_python:
needs: generate_matrix
@ -70,7 +70,7 @@ jobs:
steps:
- name: Check out repository code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: true
@ -80,7 +80,7 @@ jobs:
-Platform ${{ matrix.platform }} -Architecture ${{ matrix.arch }}
- name: Publish artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{ env.ARTIFACT_NAME }}
path: ${{ runner.temp }}/artifact
@ -97,7 +97,7 @@ jobs:
steps:
- name: Check out repository code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: true
@ -105,7 +105,7 @@ jobs:
run: ./helpers/clean-toolcache.ps1 -ToolName "Python"
- name: Download artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
path: ${{ runner.temp }}
@ -131,7 +131,7 @@ jobs:
working-directory: ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}
- name: Setup Python ${{ env.VERSION }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ env.VERSION }}
architecture: ${{ matrix.arch }}
@ -168,7 +168,7 @@ jobs:
needs: test_python
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
- name: Publish Release ${{ env.VERSION }}
id: create_release
@ -182,7 +182,7 @@ jobs:
Python ${{ env.VERSION }}
- name: Upload release assets
uses: actions/github-script@v2
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
@ -205,7 +205,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Trigger "Create Pull Request" workflow
uses: actions/github-script@v3
uses: actions/github-script@v6
with:
github-token: ${{ secrets.PERSONAL_TOKEN }}
script: |

View File

@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Trigger python workflow
run: |

View File

@ -18,7 +18,7 @@ jobs:
python: [3.5.4, 3.6.7, 3.7.5, 3.8.1]
steps:
- name: setup-python ${{ matrix.python }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

View File

@ -22,7 +22,7 @@ jobs:
if: github.repository_owner == 'actions'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
@ -35,7 +35,7 @@ jobs:
needs: [validation]
if: failure()
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

Submodule helpers updated: 6f1aa3ce73...896369fc7d