Skip to content

Commit

Permalink
Merge release related workflows in one file
Browse files Browse the repository at this point in the history
Signed-off-by: Yi Chen <[email protected]>
  • Loading branch information
ChenYi015 committed Aug 14, 2024
1 parent 74b345a commit 5dc9dd0
Show file tree
Hide file tree
Showing 5 changed files with 208 additions and 190 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/push-tag.yaml

This file was deleted.

14 changes: 11 additions & 3 deletions .github/workflows/release-charts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Release Helm charts

on:
release:
types: [published]
types:
- published

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -12,7 +13,9 @@ jobs:
build:
permissions:
contents: write

runs-on: ubuntu-latest

steps:
- name: Checkout source code
uses: actions/checkout@v4
Expand All @@ -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:
Expand Down Expand Up @@ -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
120 changes: 0 additions & 120 deletions .github/workflows/release-docker.yaml

This file was deleted.

Loading

0 comments on commit 5dc9dd0

Please sign in to comment.