From 80b7302d1a489b6f1cd641343b4d1f7811edfe60 Mon Sep 17 00:00:00 2001 From: CoolCoderCarl <123qwekir2wl@gmail.com> Date: Mon, 17 Oct 2022 21:20:52 +0300 Subject: [PATCH 1/2] Change output method in build.yaml --- .github/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ce4170c..cf9c419 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -39,7 +39,7 @@ jobs: - name: Set tag version to output id: set_current_tag_id - run: echo "::set-output name=current_tag::${{ steps.tag_version.outputs.new_tag }}" + run: echo "CURRENT_TAG=${{ steps.tag_version.outputs.new_tag }}" >> $GITHUB_OUTPUT - name: Notify if failure if: ${{ failure() }} @@ -126,7 +126,7 @@ jobs: WorkFlows: ActionsList - Commit with tag: ${{ needs.prepare.outputs.get_current_tag }} + Commit with tag: ${{ needs.prepare.outputs.CURRENT_TAG }} Repository: ${{ github.repository }} From fb6b0a5f1e9769a97c7dc140d4b0ddde046094f9 Mon Sep 17 00:00:00 2001 From: CoolCoderCarl <123qwekir2wl@gmail.com> Date: Mon, 17 Oct 2022 21:33:26 +0300 Subject: [PATCH 2/2] Change output method in build.yaml & release.yaml --- .github/workflows/build.yaml | 2 -- .github/workflows/release.yaml | 12 +++++------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index cf9c419..dbbb696 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -13,8 +13,6 @@ jobs: prepare: name: Prepare env & label runs-on: ubuntu-latest - outputs: - get_current_tag: ${{ steps.set_current_tag_id.outputs.current_tag }} steps: - name: Checkout code diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4f08284..cd1693d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -39,7 +39,7 @@ jobs: - name: Set tag version to output id: set_current_tag_id - run: echo "::set-output name=current_tag::${{ steps.tag_version.outputs.new_tag }}" + run: echo "CURRENT_TAG=${{ steps.tag_version.outputs.new_tag }}" >> $GITHUB_OUTPUT - name: Notify if failure if: ${{ failure() }} @@ -57,8 +57,6 @@ jobs: name: Create Release runs-on: ubuntu-latest needs: prepare - outputs: - get_release_url: ${{ steps.set_release_url.outputs.release_url }} steps: - name: Build Changelog @@ -76,12 +74,12 @@ jobs: GITHUB_TOKEN: ${{ secrets.REPOS_TOKEN }} with: tag_name: ${{ needs.prepare.outputs.get_current_tag }} - release_name: Release ${{ needs.prepare.outputs.get_current_tag }} + release_name: Release ${{ needs.prepare.outputs.CURRENT_TAG }} body: ${{ steps.github_release.outputs.changelog }} - name: Set Release URL id: set_release_url - run: echo "::set-output name=release_url::${{ steps.create_release.outputs.upload_url }}" + run: echo "RELEASE_URL=${{ steps.create_release.outputs.upload_url }}" >> $GITHUB_OUTPUT - name: Notify if failure if: ${{ failure() }} @@ -145,7 +143,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ needs.release.outputs.get_release_url }} + upload_url: ${{ needs.release.outputs.RELEASE_URL }} asset_path: ./dist/${{ matrix.OUT_FILE_NAME }} asset_name: ${{ matrix.OUT_FILE_NAME }} asset_content_type: ${{ matrix.ASSET_MIME }} @@ -180,7 +178,7 @@ jobs: WorkFlows: ActionsList - Commit with tag: ${{ needs.prepare.outputs.get_current_tag }} + Commit with tag: ${{ needs.prepare.outputs.CURRENT_TAG }} Repository: ${{ github.repository }}