Skip to content
This repository was archived by the owner on Jul 14, 2026. It is now read-only.

Commit c21ad8e

Browse files
authored
fix: use git add instead of git checkout to stage built chart artifacts for release PR (#28)
1 parent dd27f49 commit c21ad8e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/release.yaml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- 'R[0-9]*'
78
paths:
89
- 'charts/simplyblock-operator/Chart.yaml'
910

@@ -45,7 +46,8 @@ jobs:
4546
git config user.email "github-actions[bot]@users.noreply.github.com"
4647
4748
BRANCH="${{ steps.release_meta.outputs.branch }}"
48-
git checkout -b "$BRANCH"
49+
git fetch origin main
50+
git checkout -b "$BRANCH" origin/main
4951
5052
git add charts/index.yaml "charts/${{ env.VERSION }}/"
5153
git commit -m "helm release for simplyblock-operator ${{ env.VERSION }}" || echo "No changes to commit"

0 commit comments

Comments
 (0)