Skip to content

Commit 1c70aa4

Browse files
authored
Update workflow task (actions#196)
* Update workflow task * use $env:GITHUB_OUTPUT * update submodule
1 parent 379db95 commit 1c70aa4

9 files changed

+24
-24
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v1
45+
uses: github/codeql-action/init@v2
4646
with:
4747
languages: ${{ matrix.language }}
4848
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -53,7 +53,7 @@ jobs:
5353
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5454
# If this step fails, then you should remove it and run the build manually (see below)
5555
- name: Autobuild
56-
uses: github/codeql-action/autobuild@v1
56+
uses: github/codeql-action/autobuild@v2
5757

5858
# ℹ️ Command-line programs to run using the OS shell.
5959
# 📚 https://git.io/JvXDl
@@ -67,4 +67,4 @@ jobs:
6767
# make release
6868

6969
- name: Perform CodeQL Analysis
70-
uses: github/codeql-action/analyze@v1
70+
uses: github/codeql-action/analyze@v2

.github/workflows/create-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: Create Pull Request
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515
with:
1616
submodules: true
1717

.github/workflows/get-python-versions.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
outputs:
1919
versions_output: ${{ steps.Get_new_versions.outputs.TOOL_VERSIONS }}
2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v3
2222
with:
2323
submodules: true
2424

@@ -33,7 +33,7 @@ jobs:
3333
env:
3434
TOOL_VERSIONS: ${{needs.find_new_versions.outputs.versions_output}}
3535
steps:
36-
- uses: actions/checkout@v2
36+
- uses: actions/checkout@v3
3737
with:
3838
submodules: true
3939

@@ -63,7 +63,7 @@ jobs:
6363
TOOL_VERSIONS: ${{needs.find_new_versions.outputs.versions_output}}
6464
environment: Get Available Tools Versions - Publishing Approval
6565
steps:
66-
- uses: actions/checkout@v2
66+
- uses: actions/checkout@v3
6767
with:
6868
submodules: true
6969

@@ -82,7 +82,7 @@ jobs:
8282
needs: [find_new_versions, check_new_versions, trigger_builds]
8383
if: failure()
8484
steps:
85-
- uses: actions/checkout@v2
85+
- uses: actions/checkout@v3
8686
with:
8787
submodules: true
8888

.github/workflows/manifest-config-validation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
1515
with:
1616
submodules: true
1717

@@ -21,7 +21,7 @@ jobs:
2121
Install-Module Pester -Force -Scope CurrentUser
2222
2323
- name: Run tests
24-
shell: pwsh
24+
shell: pwsh
2525
run: |
2626
Import-Module Pester
2727
Invoke-Pester -Configuration @{

.github/workflows/python-builder.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
'arch' = $arch
5757
}
5858
}
59-
echo "::set-output name=matrix::$($matrix | ConvertTo-Json -Compress)"
59+
echo "matrix=$($matrix | ConvertTo-Json -Compress)" >> $env:GITHUB_OUTPUT
6060
6161
build_python:
6262
needs: generate_matrix
@@ -70,7 +70,7 @@ jobs:
7070
steps:
7171

7272
- name: Check out repository code
73-
uses: actions/checkout@v2
73+
uses: actions/checkout@v3
7474
with:
7575
submodules: true
7676

@@ -80,7 +80,7 @@ jobs:
8080
-Platform ${{ matrix.platform }} -Architecture ${{ matrix.arch }}
8181
8282
- name: Publish artifact
83-
uses: actions/upload-artifact@v2
83+
uses: actions/upload-artifact@v3
8484
with:
8585
name: ${{ env.ARTIFACT_NAME }}
8686
path: ${{ runner.temp }}/artifact
@@ -97,15 +97,15 @@ jobs:
9797
steps:
9898

9999
- name: Check out repository code
100-
uses: actions/checkout@v2
100+
uses: actions/checkout@v3
101101
with:
102102
submodules: true
103103

104104
- name: Fully cleanup the toolcache directory before testing
105105
run: ./helpers/clean-toolcache.ps1 -ToolName "Python"
106106

107107
- name: Download artifact
108-
uses: actions/download-artifact@v2
108+
uses: actions/download-artifact@v3
109109
with:
110110
path: ${{ runner.temp }}
111111

@@ -131,7 +131,7 @@ jobs:
131131
working-directory: ${{ runner.temp }}/${{ env.ARTIFACT_NAME }}
132132

133133
- name: Setup Python ${{ env.VERSION }}
134-
uses: actions/setup-python@v3
134+
uses: actions/setup-python@v4
135135
with:
136136
python-version: ${{ env.VERSION }}
137137
architecture: ${{ matrix.arch }}
@@ -168,7 +168,7 @@ jobs:
168168
needs: test_python
169169
runs-on: ubuntu-latest
170170
steps:
171-
- uses: actions/download-artifact@v2
171+
- uses: actions/download-artifact@v3
172172

173173
- name: Publish Release ${{ env.VERSION }}
174174
id: create_release
@@ -182,7 +182,7 @@ jobs:
182182
Python ${{ env.VERSION }}
183183
184184
- name: Upload release assets
185-
uses: actions/github-script@v2
185+
uses: actions/github-script@v6
186186
with:
187187
github-token: ${{ secrets.GITHUB_TOKEN }}
188188
script: |
@@ -205,7 +205,7 @@ jobs:
205205
runs-on: ubuntu-latest
206206
steps:
207207
- name: Trigger "Create Pull Request" workflow
208-
uses: actions/github-script@v3
208+
uses: actions/github-script@v6
209209
with:
210210
github-token: ${{ secrets.PERSONAL_TOKEN }}
211211
script: |

.github/workflows/python-versions-runner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Check out repository code
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v3
2525

2626
- name: Trigger python workflow
2727
run: |

.github/workflows/releases-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
python: [3.5.4, 3.6.7, 3.7.5, 3.8.1]
1919
steps:
2020
- name: setup-python ${{ matrix.python }}
21-
uses: actions/setup-python@v3
21+
uses: actions/setup-python@v4
2222
with:
2323
python-version: ${{ matrix.python }}
2424

.github/workflows/validate-manifest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
if: github.repository_owner == 'actions'
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v3
2626
with:
2727
submodules: true
2828

@@ -35,7 +35,7 @@ jobs:
3535
needs: [validation]
3636
if: failure()
3737
steps:
38-
- uses: actions/checkout@v2
38+
- uses: actions/checkout@v3
3939
with:
4040
submodules: true
4141

0 commit comments

Comments
 (0)