Skip to content

Commit 3c5ea09

Browse files
author
Alade Yessoufou
committed
Fix release workflow permissions and inputs
1 parent ae9442b commit 3c5ea09

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ on:
55
tags:
66
- 'v*'
77
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: 'Release tag (e.g. v1.1.2)'
11+
required: true
12+
type: string
13+
14+
permissions:
15+
contents: write
816

917
jobs:
1018
build:
@@ -24,5 +32,6 @@ jobs:
2432
with:
2533
files: dist/shipnode-installer.sh
2634
generate_release_notes: true
35+
tag_name: ${{ github.event.inputs.tag || github.ref_name }}
2736
env:
2837
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)