From fe74f8fafe268e04e6cdc04dfbdee1a595c32a38 Mon Sep 17 00:00:00 2001 From: Sterling Hanenkamp Date: Thu, 5 Sep 2024 03:20:37 -0500 Subject: [PATCH] fix: double release create --- .github/workflows/release.yaml | 2 -- .github/workflows/test.yaml | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e1e3225..cec2fce 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -44,8 +44,6 @@ jobs: echo "Release Notes Will be..." echo "========================" cat release-notes.md - - name: Create Release - run: gh release create -t "v$RELEASE_VERSION" "v$RELEASE_VERSION" --draft --notes-file=release-notes.md - name: Linux AMD 64-bit Build env: GOOS: linux diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1328fd6..a2fa370 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -26,13 +26,13 @@ jobs: - name: Prepare/Release Workflows Check run: | go install github.com/mikefarah/yq/v4@latest - yq '.jobs.release.steps.[0:10]' .github/workflows/release.yaml > release-steps.yaml + yq '.jobs.release.steps.[0:11]' .github/workflows/release.yaml > release-steps.yaml yq '.jobs.prepare.steps' .github/workflows/prepare.yaml > prepare-steps.yaml if ! diff release-steps.yaml prepare-steps.yaml; then echo "Prepare and Release workflows are not in sync!" exit 1 fi - if ! yq '.jobs.release.steps.[10]' .github/workflows/release.yaml | grep -q 'Create Release'; then + if ! yq '.jobs.release.steps.[11]' .github/workflows/release.yaml | grep -q 'Create Release'; then echo 'Release has pre-build steps missing from Prepare workflow!' exit 1 fi