Skip to content

Commit 94b411e

Browse files
authored
Merge pull request #1724 from github/aeisenberg/fix-actions-warnings
Uses newer actions versions and avoids `set-output`
2 parents 2baf99b + 082d4b8 commit 94b411e

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
steps:
2121
- name: Checkout repository
22-
uses: actions/checkout@v2
22+
uses: actions/checkout@v3
2323

2424
- name: Initialize CodeQL
2525
uses: github/codeql-action/init@main

.github/workflows/main.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
os: [ubuntu-latest, windows-latest]
1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
2020
with:
2121
fetch-depth: 1
2222

23-
- uses: actions/setup-node@v1
23+
- uses: actions/setup-node@v3
2424
with:
2525
node-version: '16.14.2'
2626

@@ -65,7 +65,7 @@ jobs:
6565
# This workflow step gets an unstable testing version of the CodeQL CLI. It should not be used outside of these tests.
6666
run: |
6767
LATEST=`gh api repos/dsp-testing/codeql-cli-nightlies/releases --jq '.[].tag_name' --method GET --raw-field 'per_page=1'`
68-
echo "::set-output name=nightly-url::https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/$LATEST"
68+
echo "nightly-url=https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/$LATEST" >> "$GITHUB_OUTPUT"
6969
7070
test:
7171
name: Test
@@ -76,11 +76,11 @@ jobs:
7676
os: [ubuntu-latest, windows-latest]
7777
steps:
7878
- name: Checkout
79-
uses: actions/checkout@v2
79+
uses: actions/checkout@v3
8080
with:
8181
fetch-depth: 1
8282

83-
- uses: actions/setup-node@v1
83+
- uses: actions/setup-node@v3
8484
with:
8585
node-version: '16.14.2'
8686

@@ -152,9 +152,9 @@ jobs:
152152

153153
steps:
154154
- name: Checkout
155-
uses: actions/checkout@v2
155+
uses: actions/checkout@v3
156156

157-
- uses: actions/setup-node@v1
157+
- uses: actions/setup-node@v3
158158
with:
159159
node-version: '16.14.2'
160160

@@ -180,10 +180,10 @@ jobs:
180180
else
181181
REF="codeql-cli/${{ matrix.version }}"
182182
fi
183-
echo "::set-output name=ref::$REF"
183+
echo "ref=$REF" >> "$GITHUB_OUTPUT"
184184
185185
- name: Checkout QL
186-
uses: actions/checkout@v2
186+
uses: actions/checkout@v3
187187
with:
188188
repository: github/codeql
189189
ref: ${{ steps.choose-ref.outputs.ref }}

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v3
2222

23-
- uses: actions/setup-node@v1
23+
- uses: actions/setup-node@v3
2424
with:
2525
node-version: '16.14.2'
2626

@@ -47,11 +47,11 @@ jobs:
4747
# Record the VSIX path as an output of this step.
4848
# This will be used later when uploading a release asset.
4949
VSIX_PATH="$(ls dist/*.vsix)"
50-
echo "::set-output name=vsix_path::$VSIX_PATH"
50+
echo "vsix_path=$VSIX_PATH" >> "$GITHUB_OUTPUT"
5151
# Transform the GitHub ref so it can be used in a filename.
5252
# The last sed invocation is used for testing branches that modify this workflow.
5353
REF_NAME="$(echo ${{ github.ref }} | sed -e 's:^refs/tags/::' | sed -e 's:/:-:g')"
54-
echo "::set-output name=ref_name::$REF_NAME"
54+
echo "ref_name=$REF_NAME" >> "$GITHUB_OUTPUT"
5555
5656
- name: Upload artifacts
5757
uses: actions/upload-artifact@v2
@@ -107,7 +107,7 @@ jobs:
107107
# Bump to the next patch version. Major or minor version bumps will have to be done manually.
108108
# Record the next version number as an output of this step.
109109
NEXT_VERSION="$(npm version patch)"
110-
echo "::set-output name=next_version::$NEXT_VERSION"
110+
echo "next_version=$NEXT_VERSION" >> "$GITHUB_OUTPUT"
111111
112112
- name: Add changelog for next release
113113
if: success()
@@ -136,7 +136,7 @@ jobs:
136136
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
137137
steps:
138138
- name: Download artifact
139-
uses: actions/download-artifact@v2
139+
uses: actions/download-artifact@v3
140140
with:
141141
name: vscode-codeql-extension
142142

@@ -156,7 +156,7 @@ jobs:
156156
OPEN_VSX_TOKEN: ${{ secrets.OPEN_VSX_TOKEN }}
157157
steps:
158158
- name: Download artifact
159-
uses: actions/download-artifact@v2
159+
uses: actions/download-artifact@v3
160160
with:
161161
name: vscode-codeql-extension
162162

0 commit comments

Comments
 (0)