Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -39,7 +37,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() }}
Expand Down Expand Up @@ -126,7 +124,7 @@ jobs:

<b>WorkFlows:</b> <a href="https://github.com/${{ github.repository }}/actions">ActionsList</a>

Commit with tag: ${{ needs.prepare.outputs.get_current_tag }}
Commit with tag: ${{ needs.prepare.outputs.CURRENT_TAG }}

Repository: ${{ github.repository }}

Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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() }}
Expand All @@ -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
Expand All @@ -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() }}
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -180,7 +178,7 @@ jobs:

<b>WorkFlows:</b> <a href="https://github.com/${{ github.repository }}/actions">ActionsList</a>

Commit with tag: ${{ needs.prepare.outputs.get_current_tag }}
Commit with tag: ${{ needs.prepare.outputs.CURRENT_TAG }}

Repository: ${{ github.repository }}

Expand Down