From 2a32803e9ed57effaeaa383994c56bf87d553727 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Mon, 19 Dec 2022 14:58:15 +0100 Subject: [PATCH] CI: Replace `set-output` with environment file https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- .github/workflows/ci.yml | 4 ++-- .github/workflows/release.yml | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd17f041..78432554 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -482,7 +482,7 @@ jobs: INPUT=src/ArduinoJson.h OUTPUT=ArduinoJson-$VERSION.h extras/scripts/build-single-header.sh "$INPUT" "$OUTPUT" - echo ::set-output name=filename::${OUTPUT} + echo "filename=${OUTPUT}" >> $GITHUB_OUTPUT - name: Smoke test run: | g++ -x c++ - <> $GITHUB_OUTPUT - name: Smoke test run: | g++ -x c++ - <> $GITHUB_OUTPUT + echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT - name: Checkout uses: actions/checkout@v2 - name: Write release body @@ -22,25 +22,25 @@ jobs: run: | FILENAME=RELEASE.md extras/scripts/get-release-body.sh ${{ steps.init.outputs.tag }} CHANGELOG.md | tee $FILENAME - echo ::set-output name=filename::$FILENAME + echo "filename=$FILENAME" >> $GITHUB_OUTPUT - name: Amalgamate ArduinoJson.h id: amalgamate_h run: | FILENAME=ArduinoJson-${{ steps.init.outputs.tag }}.h extras/scripts/build-single-header.sh src/ArduinoJson.h "$FILENAME" - echo ::set-output name=filename::$FILENAME + echo "filename=$FILENAME" >> $GITHUB_OUTPUT - name: Amalgamate ArduinoJson.hpp id: amalgamate_hpp run: | FILENAME=ArduinoJson-${{ steps.init.outputs.tag }}.hpp extras/scripts/build-single-header.sh src/ArduinoJson.hpp "$FILENAME" - echo ::set-output name=filename::$FILENAME + echo "filename=$FILENAME" >> $GITHUB_OUTPUT - name: Create Arduino package id: arduino run: | FILENAME=ArduinoJson-${{ steps.init.outputs.tag }}.zip extras/scripts/build-arduino-package.sh . "$FILENAME" - echo ::set-output name=filename::$FILENAME + echo "filename=$FILENAME" >> $GITHUB_OUTPUT - name: Create release uses: ncipollo/release-action@v1 with: