File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ name: publish
33on :
44 push :
55 branches : ['main']
6- tags : ['v*.*.*']
6+ tags :
7+ - ' v*.*.*'
78
89concurrency : ${{ github.ref }}
910
@@ -122,4 +123,17 @@ jobs:
122123 needs : [create-draft-release, build-binaries, build-images]
123124 steps :
124125 - uses : actions/github-script@v6
125- if : startsWith(github.ref, 'refs/tags/
126+ if : startsWith(github.ref, 'refs/tags/')
127+ with :
128+ github-token : ${{ secrets.GITHUB_TOKEN }}
129+ script : |
130+ try {
131+ await github.rest.repos.updateRelease({
132+ owner: context.repo.owner,
133+ repo: context.repo.repo,
134+ release_id: ${{ needs.create-draft-release.outputs.RELEASE_ID }},
135+ draft: false,
136+ });
137+ } catch (error) {
138+ core.setFailed(error.message);
139+ }
You can’t perform that action at this time.
0 commit comments