Skip to content

Commit 7e87c58

Browse files
committed
Attempt to resolve workflow issues
1 parent fec6fa3 commit 7e87c58

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/release.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
steps:
2424
- name: Checkout code
2525
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
26+
with:
27+
fetch-depth: 0
2628

2729
- name: Setup Golang
2830
uses: actions/setup-go@v5
@@ -87,7 +89,7 @@ jobs:
8789
git config --local user.email "github-actions[bot]@users.noreply.github.com"
8890
git config --local user.name "github-actions[bot]"
8991
git status
90-
git commit -a -m "Bump versions to ${{steps.release_number.outputs.substring}} "
92+
git commit -a -m "Bump versions to ${{steps.release_number.outputs.substring}}"
9193
9294
- name: Push changes
9395
if: steps.filter.outputs.versions == 'true'
@@ -122,6 +124,8 @@ jobs:
122124
steps:
123125
- name: Checkout code
124126
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
127+
with:
128+
path: version-checker
125129

126130
- name: Setup Cosign
127131
uses: sigstore/cosign-installer@main
@@ -136,8 +140,6 @@ jobs:
136140

137141
- name: Setup Helm
138142
uses: azure/setup-helm@v4
139-
with:
140-
token: ${{ github.token }}
141143

142144
- name: Login to Quay.io
143145
run: echo "${{ secrets.QUAY_ROBOT_TOKEN }}" | helm registry login quay.io -u ${{ secrets.QUAY_USERNAME }} --password-stdin
@@ -152,7 +154,6 @@ jobs:
152154
--bundle jetstack-charts/charts/version-checker-${{steps.release_number.outputs.substring}}.tgz.cosign.bundle
153155
154156
- name: Creating PR
155-
if: startsWith(github.ref, 'refs/tags/')
156157
uses: peter-evans/create-pull-request@v7
157158
with:
158159
token: ${{ secrets.JETSTACK_CHARTS_PAT }}
@@ -169,8 +170,9 @@ jobs:
169170
draft: ${{ !startsWith(github.ref, 'refs/tags/') }}
170171

171172
- name: Push to Quay
173+
if: startsWith(github.ref, 'refs/tags/')
172174
run: |-
173-
helm push jetstack-charts/charts/version-checker-${{ github.ref_name }}.tgz oci://quay.io/quay.io/jetstack/version-checker/chart
175+
helm push jetstack-charts/charts/version-checker-${{ steps.release_number.outputs.substring }}.tgz oci://quay.io/quay.io/jetstack/version-checker/chart
174176
175177
docker-release:
176178
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)