Skip to content

Commit

Permalink
fix: double release create
Browse files Browse the repository at this point in the history
  • Loading branch information
zostay committed Sep 5, 2024
1 parent 232e2a6 commit fe74f8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fe74f8f

Please sign in to comment.