Skip to content

Commit 42f05a5

Browse files
committed
update workflow set-output to new GITHUB_OUTPUT
1 parent 90ff6f0 commit 42f05a5

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

.github/workflows/build-test-package-publish.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170
run: poetry install --no-interaction
171171

172172
- name: Setup Node.js environment
173-
uses: actions/setup-node@v2
173+
uses: actions/setup-node@v3
174174
with:
175175
node-version: "16"
176176
cache: 'npm'
@@ -246,7 +246,7 @@ jobs:
246246
run: poetry install --no-interaction
247247

248248
- name: Setup Node.js environment
249-
uses: actions/setup-node@v2
249+
uses: actions/setup-node@v3
250250
with:
251251
node-version: "16"
252252
cache: 'npm'
@@ -272,28 +272,25 @@ jobs:
272272
id: get_release_informations
273273
run: |
274274
REL_NOTES="$(poetry run npm run --silent extract-release-notes)"
275-
echo "$REL_NOTES"
276275
277276
REL_NOTES="${REL_NOTES//'%'/'%25'}"
278277
REL_NOTES="${REL_NOTES//$'\n'/'%0A'}"
279278
REL_NOTES="${REL_NOTES//$'\r'/'%0D'}"
280279
281-
echo "$REL_NOTES"
282-
283-
echo "::set-output name=release_notes::$REL_NOTES"
284-
echo "::set-output name=is_prelease::$(poetry run npm run --silent is-prerelease)"
280+
echo "release_notes=$REL_NOTES" >> $GITHUB_OUTPUT
281+
echo "is_prelease=$(poetry run npm run --silent is-prerelease)" >> $GITHUB_OUTPUT
285282
286283
- name: find assets
287284
id: find_assets
288285
run: |
289-
echo "::set-output name=vsix_file::$(find dist -iname '*.vsix')"
290-
echo "::set-output name=vsix_name::$(find dist -iname '*.vsix' -printf '%f\n')"
286+
echo "vsix_file=$(find dist -iname '*.vsix')" >> $GITHUB_OUTPUT
287+
echo "vsix_name=$(find dist -iname '*.vsix' -printf '%f\n')" >> $GITHUB_OUTPUT
291288
292-
echo "::set-output name=whl_file::$(find dist -iname '*.whl')"
293-
echo "::set-output name=whl_name::$(find dist -iname '*.whl' -printf '%f\n')"
289+
echo "whl_file=$(find dist -iname '*.whl')" >> $GITHUB_OUTPUT
290+
echo "whl_name=$(find dist -iname '*.whl' -printf '%f\n')" >> $GITHUB_OUTPUT
294291
295-
echo "::set-output name=tar_gz_file::$(find dist -iname '*.tar.gz')"
296-
echo "::set-output name=tar_gz_name::$(find dist -iname '*.tar.gz' -printf '%f\n')"
292+
echo "tar_gz_file=$(find dist -iname '*.tar.gz')" >> $GITHUB_OUTPUT
293+
echo "tar_gz_name=$(find dist -iname '*.tar.gz' -printf '%f\n')" >> $GITHUB_OUTPUT
297294
298295
- name: create github release
299296
id: create_release

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ jobs:
8484
# make release
8585

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

0 commit comments

Comments
 (0)