Skip to content

Commit 297ec80

Browse files
authored
Merge pull request #1301 from github/aeisenberg/remove-set-output
Removes deprecated set-output usage
2 parents e2481f7 + b0f8861 commit 297ec80

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+519
-1187
lines changed

.github/prepare-test/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ runs:
2222
run: |
2323
if [[ ${{ inputs.version }} == "nightly-latest" ]]; then
2424
export LATEST=`gh release list --repo dsp-testing/codeql-cli-nightlies -L 1 | cut -f 3`
25-
echo "::set-output name=tools-url::https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/$LATEST/codeql-bundle.tar.gz"
25+
echo "tools-url=https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/$LATEST/codeql-bundle.tar.gz" >> $GITHUB_OUTPUT
2626
elif [[ ${{ inputs.version }} == *"nightly"* ]]; then
2727
export VERSION=`echo ${{ inputs.version }} | sed -e 's/^.*\-//'`
28-
echo "::set-output name=tools-url::https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/codeql-bundle-$VERSION-manual/codeql-bundle.tar.gz"
28+
echo "tools-url=https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/codeql-bundle-$VERSION-manual/codeql-bundle.tar.gz" >> $GITHUB_OUTPUT
2929
elif [[ ${{ inputs.version }} == *"stable"* ]]; then
3030
export VERSION=`echo ${{ inputs.version }} | sed -e 's/^.*\-//'`
31-
echo "::set-output name=tools-url::https://github.com/github/codeql-action/releases/download/codeql-bundle-$VERSION/codeql-bundle.tar.gz"
31+
echo "tools-url=https://github.com/github/codeql-action/releases/download/codeql-bundle-$VERSION/codeql-bundle.tar.gz" >> $GITHUB_OUTPUT
3232
elif [[ ${{ inputs.version }} == "latest" ]]; then
33-
echo "::set-output name=tools-url::latest"
33+
echo "tools-url=latest" >> $GITHUB_OUTPUT
3434
elif [[ ${{ inputs.version }} == "cached" ]]; then
35-
echo "::set-output name=tools-url::"
35+
echo "tools-url=" >> $GITHUB_OUTPUT
3636
else
3737
echo "::error Unrecognized version specified!"
3838
fi

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
6262
# Output a JSON-encoded list with the distinct versions to test against.
6363
echo "Suggested matrix config for analysis job: $VERSIONS_JSON"
64-
echo "::set-output name=versions::${VERSIONS_JSON}"
64+
echo "versions=${VERSIONS_JSON}" >> $GITHUB_OUTPUT
6565
6666
build:
6767
needs: [check-codeql-versions]

.github/workflows/post-release-mergeback.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,10 @@ jobs:
4747
id: getVersion
4848
run: |
4949
VERSION="v$(jq '.version' -r 'package.json')"
50-
echo "::set-output name=version::${VERSION}"
50+
echo "version=${VERSION}" >> $GITHUB_OUTPUT
5151
short_sha="${GITHUB_SHA:0:8}"
5252
NEW_BRANCH="mergeback/${VERSION}-to-${BASE_BRANCH}-${short_sha}"
53-
echo "::set-output name=newBranch::${NEW_BRANCH}"
54-
53+
echo "newBranch=${NEW_BRANCH}" >> $GITHUB_OUTPUT
5554
5655
- name: Dump branches
5756
env:
@@ -77,7 +76,7 @@ jobs:
7776
exists="$?"
7877
if [ "${exists}" -eq 0 ]; then
7978
echo "Tag ${VERSION} exists. Not going to re-release."
80-
echo "::set-output name=exists::true"
79+
echo "exists=true" >> $GITHUB_OUTPUT
8180
else
8281
echo "Tag ${VERSION} does not exist yet."
8382
fi

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## [UNRELEASED]
44

55
- Update default CodeQL bundle version to 2.11.1. [#1294](https://github.com/github/codeql-action/pull/1294)
6+
- Replace uses of GitHub Actions command `set-output` because it is now deprecated. See more information in the [GitHub Changelog](https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/). [#1301](https://github.com/github/codeql-action/pull/1301)
67

78
## 2.1.27 - 06 Oct 2022
89

node_modules/.package-lock.json

Lines changed: 21 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@actions/artifact/lib/internal/crc64.d.ts

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)