Skip to content

Commit

Permalink
Merge pull request #786 from elezar/fix-release-job
Browse files Browse the repository at this point in the history
[no-relnote] Fix release steps
  • Loading branch information
elezar authored Jun 25, 2024
2 parents ae101c1 + 0bc2f3c commit 6cf4f2b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./hack/create-release.sh --version ${{ github.ref_name }}
./hack/create-release.sh ${{ github.ref_name }}
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The device plugin consists in two artifacts:
```
- Create the draft release by running:
```bash
./hack/create-release.sh --version {{ .VERSION }}
./hack/create-release.sh {{ .VERSION }}
```
- If the `Publish Helm Chart` GitHub Action fails:
- Check the logs for the error.
Expand Down
11 changes: 7 additions & 4 deletions hack/update-helm-index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,15 @@ while [[ $# -gt 0 ]]; do
--help/h) usage
exit 0
;;
*)
break
;;
esac
done


if [ -z "${HELM_REPO_PATH}" ]; then
if [ -z "${VERSION}" ]; then
if [[ -z "${HELM_REPO_PATH}" ]]; then
if [[ -z "${VERSION}" ]]; then
echo "Either helm repo path or version must be specified"
usage
exit 1
Expand All @@ -69,8 +72,8 @@ if [ -z "${HELM_REPO_PATH}" ]; then
fi


if [ -n ${VERSION} ]; then
if [ $# -gt 0 ]; then
if [[ -n "${VERSION}" ]]; then
if [[ $# -gt 0 ]]; then
echo "If a version is specified, then no assets should be specified"
usage
exit 1
Expand Down

0 comments on commit 6cf4f2b

Please sign in to comment.