Skip to content

Commit 97a0074

Browse files
committed
chore(ci): fix workflow file, bad paste
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 599aca3 commit 97a0074

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/publish.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: publish
33
on:
44
push:
55
branches: ['main']
6-
tags: ['v*.*.*']
6+
tags:
7+
- 'v*.*.*'
78

89
concurrency: ${{ 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+
}

0 commit comments

Comments
 (0)