From a3f7a21946bcec9bc1770275ce9d45e081c78b1e Mon Sep 17 00:00:00 2001 From: mingzq Date: Sat, 22 Jun 2024 02:00:39 +0000 Subject: [PATCH] Correct ci --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 90e493a6..7f21fbca 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -151,7 +151,7 @@ jobs: # Todo: avoid confilict sleep $((RANDOM % 30)) - TAG=${{ github.event.inputs.tag_name }} + TAG=${{ steps.tag-name.outputs.tag_name }} RELEASE_URL="https://api.github.com/repos/${{ github.repository }}/releases/tags/$TAG" RESPONSE=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" $RELEASE_URL) RELEASE_EXISTS=$(echo $RESPONSE | jq -r '.message // empty') @@ -173,7 +173,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ github.event.inputs.tag_name }} + tag_name: ${{ steps.tag-name.outputs.tag_name }} release_name: ${{ steps.changelog.outputs.changelog_title }} body_path: ${{ steps.changelog.outputs.changelog_content }} draft: false