From af56e01980edb352e93fc3fd649b956f00c8b3f0 Mon Sep 17 00:00:00 2001 From: Jeffrey Charles Date: Mon, 4 Nov 2024 10:37:09 -0500 Subject: [PATCH] Stop using deprecated set-output in GitHub Action workflows (#801) --- .github/actions/ci-shared-setup/action.yml | 2 +- .github/workflows/check-fuzz.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/actions/ci-shared-setup/action.yml b/.github/actions/ci-shared-setup/action.yml index 71da368c..90ab7cc2 100644 --- a/.github/actions/ci-shared-setup/action.yml +++ b/.github/actions/ci-shared-setup/action.yml @@ -30,7 +30,7 @@ runs: shell: bash run: | VERSION=$(cargo metadata --format-version=1 --locked | jq '.packages[] | select(.name == "wasmtime") | .version' -r) - echo "::set-output name=wasmtime_version::$VERSION" + echo "wasmtime_version=$VERSION" >> "$GITHUB_OUTPUT" - name: Install wasmtime-cli shell: bash diff --git a/.github/workflows/check-fuzz.yml b/.github/workflows/check-fuzz.yml index e8e88572..733492a1 100644 --- a/.github/workflows/check-fuzz.yml +++ b/.github/workflows/check-fuzz.yml @@ -1,6 +1,6 @@ # Smoke test to build fuzz targets. # Deserves its own action given that it depends on nightly -# and there's currently no way to define multiple toolchains through the +# and there's currently no way to define multiple toolchains through the # `rust-toolchain.toml` configuration file. name: Build Fuzz Targets on: @@ -20,14 +20,14 @@ jobs: shell: bash run: | NIGHTLY_VERSION=$(cat pinned-nightly-version) - echo "::set-output name=nightly_version::$NIGHTLY_VERSION" + echo "nightly_version=$NIGHTLY_VERSION" >> "$GITHUB_OUTPUT" - name: Read cargo fuzz version id: cargo_fuzz_version shell: bash run: | CARGO_FUZZ_VERSION=$(cat pinned-cargo-fuzz-version) - echo "::set-output name=cargo_fuzz_version::$CARGO_FUZZ_VERSION" + echo "cargo_fuzz_version=$CARGO_FUZZ_VERSION" >> "$GITHUB_OUTPUT" - name: Install nightly run: |