Skip to content

Commit

Permalink
Fixup github release actions (#1585)
Browse files Browse the repository at this point in the history
Summary: This should fix non-prerelease builds.

Type of change: /kind bug

Test Plan: Ran the command locally.

Signed-off-by: Vihang Mehta <[email protected]>
  • Loading branch information
vihangm authored Jun 27, 2023
1 parent c74917b commit 7615f3a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cli_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ jobs:
# actions/checkout doesn't get the tag annotation properly.
git fetch origin tag "${TAG_NAME}" -f
export changelog="$(git tag -l --format='%(contents)' "${TAG_NAME}")"
prerelease=""
prerelease=()
if [[ "${REF}" == *"-"* ]]; then
prerelease="--prerelease"
prerelease=("--prerelease")
fi
gh release create "${TAG_NAME}" "${prerelease}" \
gh release create "${TAG_NAME}" "${prerelease[@]}" \
--title "CLI ${TAG_NAME#release/cli/}" \
--notes $'Pixie CLI Release:\n'"${changelog}"
gh release upload "${TAG_NAME}" linux-artifacts/* macos-artifacts/*
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/operator_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ jobs:
# actions/checkout doesn't get the tag annotation properly.
git fetch origin tag "${TAG_NAME}" -f
export changelog="$(git tag -l --format='%(contents)' "${TAG_NAME}")"
prerelease=""
prerelease=()
if [[ "${REF}" == *"-"* ]]; then
prerelease="--prerelease"
prerelease=("--prerelease")
fi
gh release create "${TAG_NAME}" "${prerelease}" \
gh release create "${TAG_NAME}" "${prerelease[@]}" \
--title "Operator ${TAG_NAME#release/operator/}" \
--notes $'Pixie Operator Release:\n'"${changelog}"
gh release upload "${TAG_NAME}" operator-artifacts/*
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/vizier_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ jobs:
# actions/checkout doesn't get the tag annotation properly.
git fetch origin tag "${TAG_NAME}" -f
export changelog="$(git tag -l --format='%(contents)' "${TAG_NAME}")"
prerelease=""
prerelease=()
if [[ "${REF}" == *"-"* ]]; then
prerelease="--prerelease"
prerelease=("--prerelease")
fi
gh release create "${TAG_NAME}" "${prerelease}" \
gh release create "${TAG_NAME}" "${prerelease[@]}" \
--title "Vizier ${TAG_NAME#release/vizier/}" \
--notes $'Pixie Vizier Release:\n'"${changelog}"
gh release upload "${TAG_NAME}" vizier-artifacts/*
Expand Down

0 comments on commit 7615f3a

Please sign in to comment.