Skip to content

Commit 20de719

Browse files
Fix checkout in helm-publish workflow (#704)
*Issue #, if available:* The second checkout was overwriting the working directory and removing the `charts/` folder from the first checkout. *Description of changes:* Added path: main-branch to check it out to a subdirectory instead. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. Signed-off-by: Renan Magagnin <renanmag@amazon.co.uk>
1 parent e4c2b47 commit 20de719

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/helm-publish.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
uses: actions/checkout@v6
2626
with:
2727
ref: main
28+
path: main-branch
2829
sparse-checkout: |
2930
scripts/verify-helm-images.sh
3031
sparse-checkout-cone-mode: false
@@ -41,7 +42,7 @@ jobs:
4142
sudo chmod +x /usr/local/bin/crane
4243
crane version
4344
- name: Verify all images exist before publishing
44-
run: ./scripts/verify-helm-images.sh
45+
run: ./main-branch/scripts/verify-helm-images.sh
4546
# TODO: Uncomment after verifying the workflow works correctly
4647
# - name: Run chart-releaser
4748
# uses: helm/chart-releaser-action@v1.7.0

0 commit comments

Comments
 (0)