diff --git a/.github/workflows/release-on-tag.yml b/.github/workflows/release-on-tag.yml index 91306242..da5bcb32 100644 --- a/.github/workflows/release-on-tag.yml +++ b/.github/workflows/release-on-tag.yml @@ -21,14 +21,15 @@ jobs: repo: context.repo.repo, tag: context.ref.replace('refs/tags/', ''), }) - outputs.release_exists = 'true' + return { release_exists: 'true' } } catch (error) { if (error.status === 404) { - outputs.release_exists = 'false' + return { release_exists: 'false' } } else { throw error } } + result-encoding: string - name: Create Release if: steps.check_release.outputs.release_exists == 'false' @@ -41,4 +42,4 @@ jobs: draft: false prerelease: false env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}