Skip to content

Commit 2030bdd

Browse files
saschagrunertk8s-ci-robot
authored andcommitted
Switch from actions/upload-release-asset to softprops/action-gh-release
The other release action is deprecated in favor of the new one. Signed-off-by: Sascha Grunert <[email protected]>
1 parent 778c995 commit 2030bdd

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/helm-chart-package.yaml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
pull_request:
44
release:
55
types: [published]
6-
6+
77
permissions:
88
contents: write
99

@@ -33,12 +33,8 @@ jobs:
3333
name: ${{ steps.package.outputs.helm_tgz_name}}
3434
path: ${{ steps.package.outputs.helm_tgz_path}}
3535
if-no-files-found: error
36-
- uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
37-
if: github.event_name == 'release'
38-
env:
39-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
- uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15
37+
if: startsWith(github.ref, 'refs/tags/')
4038
with:
41-
upload_url: ${{ github.event.release.upload_url }}
42-
asset_path: ${{ steps.package.outputs.helm_tgz_path}}
43-
asset_name: ${{ steps.package.outputs.helm_tgz_name}}
44-
asset_content_type: 'application/x-tar'
39+
files: |
40+
${{ steps.package.outputs.helm_tgz_path}}

0 commit comments

Comments
 (0)