From 1184e2500c19c00f262ea906e2234b4024fca65b Mon Sep 17 00:00:00 2001 From: Jayant Pranjal <96689162+jayantpranjal0@users.noreply.github.com> Date: Thu, 5 Jun 2025 13:50:12 +0530 Subject: [PATCH] Replaced ::set-output(deprecated) with (#6641) Co-authored-by: Jayant --- .github/workflows/docker-image.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index f10e11ffb3..d3a469ad57 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -16,14 +16,14 @@ jobs: - uses: Swatinem/rust-cache@v2 - name: Get current tag id: vars - run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} + run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT - name: Get minor and major tags id: version run: | MAJOR_VERSION=$(echo "${{ steps.vars.outputs.tag }}" | cut -d '.' -f 1) MINOR_VERSION=$(echo "${{ steps.vars.outputs.tag }}" | cut -d '.' -f 1-2) - echo ::set-output name=major_version::${MAJOR_VERSION} - echo ::set-output name=minor_version::${MINOR_VERSION} + echo "major_version=${MAJOR_VERSION}" >> $GITHUB_OUTPUT + echo "minor_version=${MINOR_VERSION}" >> $GITHUB_OUTPUT - name: Build the Docker image env: RELEASE_VERSION: ${{ steps.vars.outputs.tag }} @@ -73,14 +73,14 @@ jobs: - uses: Swatinem/rust-cache@v2 - name: Get current tag id: vars - run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} + run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT - name: Get minor and major tags id: version run: | MAJOR_VERSION=$(echo "${{ steps.vars.outputs.tag }}" | cut -d '.' -f 1) MINOR_VERSION=$(echo "${{ steps.vars.outputs.tag }}" | cut -d '.' -f 1-2) - echo ::set-output name=major_version::${MAJOR_VERSION} - echo ::set-output name=minor_version::${MINOR_VERSION} + echo "major_version=${MAJOR_VERSION}" >> $GITHUB_OUTPUT + echo "minor_version=${MINOR_VERSION}" >> $GITHUB_OUTPUT - name: Build the Docker image env: RELEASE_VERSION: ${{ steps.vars.outputs.tag }}