From ddc40b70e9096c95086663abb2be45b65aa8d127 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Mon, 5 Jun 2023 17:52:05 +0100 Subject: [PATCH] Replace use of set-output in GitHub Actions workflows It's deprecated and will be disabled at some point. --- .github/workflows/ci.yml | 6 +++--- .github/workflows/release.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 656b382..c7c6978 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: else PLATFORM=x64 fi - echo "::set-output name=architecture::$PLATFORM" + echo "architecture=$PLATFORM" >> $GITHUB_OUTPUT - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 @@ -49,7 +49,7 @@ jobs: GIT_DESCRIBE=$(git describe --tags --long --abbrev=7) DESC_REF=${GIT_DESCRIBE}_${GITHUB_REF#refs/*/} SAFE_DESC_REF=${DESC_REF//[\/<>\"|]/_} - echo "::set-output name=version::$SAFE_DESC_REF" + echo "version=$SAFE_DESC_REF" >> $GITHUB_OUTPUT - name: Run CMake run: | @@ -78,7 +78,7 @@ jobs: PLATFORM=win64 fi - echo "::set-output name=filename::libloot-python-${VERSION}-${PLATFORM}.zip" + echo "filename=libloot-python-${VERSION}-${PLATFORM}.zip" >> $GITHUB_OUTPUT - name: Upload archive uses: actions/upload-artifact@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c466f8b..900b920 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: steps: - name: Get Git tag id: get-git-tag - run: echo "::set-output name=name::${GITHUB_REF#refs/*/}" + run: echo "name=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT - id: create_release uses: actions/create-release@v1 @@ -55,7 +55,7 @@ jobs: GIT_DESCRIBE=$(git describe --tags --long --abbrev=7) DESC_REF=${GIT_DESCRIBE}_${GITHUB_REF#refs/*/} SAFE_DESC_REF=${DESC_REF//[\/<>\"|]/_} - echo "::set-output name=version::$SAFE_DESC_REF" + echo "version=$SAFE_DESC_REF" >> $GITHUB_OUTPUT - name: Run CMake run: | @@ -79,7 +79,7 @@ jobs: PLATFORM=win64 fi - echo "::set-output name=filename::libloot-python-${VERSION}-${PLATFORM}.zip" + echo "filename=libloot-python-${VERSION}-${PLATFORM}.zip" >> $GITHUB_OUTPUT - name: Upload Archive uses: actions/upload-release-asset@v1