From c12e3a78836de64254bc625bcdd32071c9bb2a8f Mon Sep 17 00:00:00 2001 From: "vlad.lezhnin" Date: Thu, 22 May 2025 12:36:19 +0100 Subject: [PATCH] Morph: set-output issue 2 --- .github/workflows/on-demand.yml | 4 ++-- .github/workflows/release-please.yml | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/on-demand.yml b/.github/workflows/on-demand.yml index 5b9889a43a84..a2c1d580142a 100644 --- a/.github/workflows/on-demand.yml +++ b/.github/workflows/on-demand.yml @@ -18,7 +18,7 @@ jobs: - name: Get branch name # see https://github.com/actions/checkout/issues/331 id: get-branch - run: echo ::set-output name=branch::$(gh pr view $PR_NO --repo $REPO --json headRefName --jq '.headRefName') + run: echo "branch=$(gh pr view $PR_NO --repo $REPO --json headRefName --jq '.headRefName')" >> $GITHUB_OUTPUT env: REPO: ${{ github.repository }} PR_NO: ${{ github.event.issue.number }} @@ -79,7 +79,7 @@ jobs: - name: Get branch name # see https://github.com/actions/checkout/issues/331 id: get-branch - run: echo ::set-output name=branch::$(gh pr view $PR_NO --repo $REPO --json headRefName --jq '.headRefName') + run: echo "branch=$(gh pr view $PR_NO --repo $REPO --json headRefName --jq '.headRefName')" >> $GITHUB_OUTPUT env: REPO: ${{ github.repository }} PR_NO: ${{ github.event.issue.number }} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 98a9fb1c895a..b46ef155c935 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -45,8 +45,8 @@ jobs: needs: release-please if: ${{ needs.release-please.outputs.release_created }} outputs: - VERSION_NAME: ${{ steps.set_output.outputs.VERSION_NAME }} - VERSION_CODE: ${{ steps.set_output.outputs.VERSION_CODE }} + VERSION_NAME: ${{ env.VERSION_NAME }} + VERSION_CODE: ${{ env.VERSION_CODE }} steps: - uses: actions/checkout@v4 @@ -103,9 +103,10 @@ jobs: tag: "v${{ env.VERSION_NAME }}" overwrite: true - - name: Set output - id: set_output - run: echo "::set-output name=VERSION_NAME::${{ env.VERSION_NAME }}" && echo "::set-output name=VERSION_CODE::${{ env.VERSION_CODE }}" + - name: Set output variables + run: | + echo "VERSION_NAME=${{ env.VERSION_NAME }}" >> $GITHUB_ENV + echo "VERSION_CODE=${{ env.VERSION_CODE }}" >> $GITHUB_ENV android-release: concurrency: