Skip to content

Commit

Permalink
cicd: fix prepare/release sync check
Browse files Browse the repository at this point in the history
  • Loading branch information
zostay committed Jan 18, 2024
1 parent 9ccca5d commit b3b987c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ jobs:
- name: Prepare/Release Workflows Check
run: |
go install github.com/mikefarah/yq/v4@latest
yq '.jobs.release.steps.[0:8]' .github/workflows/release.yaml > release-steps.yaml
yq '.jobs.release.steps.[0:9]' .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.[8]' .github/workflows/release.yaml | grep -q 'Create Release'; then
if ! yq '.jobs.release.steps.[9]' .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 b3b987c

Please sign in to comment.