forked from kubeflow/spark-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge release related workflows in one file
Signed-off-by: Yi Chen <[email protected]>
- Loading branch information
Showing
5 changed files
with
208 additions
and
190 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,8 @@ name: Release Helm charts | |
|
||
on: | ||
release: | ||
types: [published] | ||
types: | ||
- published | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
|
@@ -12,7 +13,9 @@ jobs: | |
build: | ||
permissions: | ||
contents: write | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
|
@@ -22,6 +25,11 @@ jobs: | |
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Read version from VERSION file | ||
run: | | ||
VERSION=$(cat VERSION) | ||
echo "VERSION=${VERSION}" >> $GITHUB_ENV | ||
- name: Set up Helm | ||
uses: azure/[email protected] | ||
with: | ||
|
@@ -52,7 +60,7 @@ jobs: | |
env: | ||
CHART_URL: https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }} | ||
run: | | ||
helm repo index --merge index.yaml --url $CHART_URL . | ||
helm repo index --merge index.yaml --url ${CHART_URL} . | ||
git add index.yaml | ||
git commit -s -m "Update index.yaml" || exit 0 | ||
git commit -s -m "Update Helm repo index for Spark operator chart version ${VERSION}" || exit 0 | ||
git push |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.