@@ -195,7 +195,7 @@ jobs:
195
195
with :
196
196
minor-label : " enhancement"
197
197
major-label : " change"
198
- publish : ${{ github.ref_type == 'tag' }}
198
+ publish : ${{ github.ref_type == 'tag' && vars.OLD_RELEASE_FLOW == 'true' }}
199
199
collapse-after : 50
200
200
variables : |
201
201
helm-chart=${{ needs.checks.outputs.chart_version }}
@@ -234,17 +234,17 @@ jobs:
234
234
235
235
- name : Download Syft
236
236
uses : anchore/sbom-action/download-syft@e8d2a6937ecead383dfe75190d104edd1f9c5751 # v0.16.0
237
- if : github.ref_type == 'tag'
237
+ if : ${{ github.ref_type == 'tag' && vars.OLD_RELEASE_FLOW == 'true' }}
238
238
239
239
- name : Install Cosign
240
240
uses : sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 # v3.5.0
241
- if : github.ref_type == 'tag'
241
+ if : ${{ github.ref_type == 'tag' && vars.OLD_RELEASE_FLOW == 'true' }}
242
242
243
243
- name : Build binaries
244
244
uses : goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
245
245
with :
246
246
version : latest
247
- args : ${{ github.ref_type == 'tag' && 'release' || ' build --snapshot' }} --clean
247
+ args : build --snapshot --clean
248
248
env :
249
249
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
250
250
GOPATH : ${{ needs.checks.outputs.go_path }}
@@ -256,10 +256,6 @@ jobs:
256
256
AWS_NAP_WAF_PUB_KEY : ${{ secrets.AWS_NAP_WAF_PUB_KEY }}
257
257
AWS_NAP_WAF_DOS_PRODUCT_CODE : ${{ secrets.AWS_NAP_WAF_DOS_PRODUCT_CODE }}
258
258
AWS_NAP_WAF_DOS_PUB_KEY : ${{ secrets.AWS_NAP_WAF_DOS_PUB_KEY }}
259
- SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK_COMMUNITY }}
260
- AZURE_STORAGE_ACCOUNT : ${{ secrets.AZURE_STORAGE_ACCOUNT }}
261
- AZURE_STORAGE_KEY : ${{ secrets.AZURE_STORAGE_KEY }}
262
- AZURE_BUCKET_NAME : ${{ secrets.AZURE_BUCKET_NAME }}
263
259
GORELEASER_CURRENT_TAG : " v${{ needs.checks.outputs.ic_version }}"
264
260
if : ${{ needs.checks.outputs.binary_cache_hit != 'true' }}
265
261
0 commit comments