Skip to content

Commit b49f671

Browse files
appleapple
authored andcommitted
Fix GitHub release permissions and version handling
- Add contents: write permission to release job - Update to softprops/action-gh-release@v2 - Add version variable in main.go for build-time injection - Should fix 403 permission errors in release creation
1 parent 067e764 commit b49f671

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ jobs:
8484
release:
8585
needs: build
8686
runs-on: ubuntu-latest
87+
permissions:
88+
contents: write
8789
steps:
8890
- uses: actions/checkout@v4
8991

@@ -116,7 +118,7 @@ jobs:
116118
ls -la release/
117119
118120
- name: Create Release
119-
uses: softprops/action-gh-release@v1
121+
uses: softprops/action-gh-release@v2
120122
with:
121123
tag_name: ${{ steps.version.outputs.version }}
122124
name: Release ${{ steps.version.outputs.version }}

cmd/stack-base/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ var version = "dev"
1414

1515
func main() {
1616
var rootCmd = &cobra.Command{
17-
Use: "stack-base",
18-
Short: "Stack base binary manager with aqua integration",
17+
Use: "stack-base",
18+
Short: "Stack base binary manager with aqua integration",
1919
Version: version,
2020
}
2121

0 commit comments

Comments
 (0)