Skip to content

Commit

Permalink
[workflows] fix version release
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhuda committed Aug 1, 2024
1 parent 9258bb4 commit 6aeeb02
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ jobs:
build:
if: ${{ github.event.workflow_run.conclusion == 'success' }} # Only run if the Go workflow succeeded
runs-on: ubuntu-latest
permissions:
contents: write # Required to create a release
issues: read # Optional, if you need to read issues
# Add other permissions as needed

steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -21,7 +26,7 @@ jobs:

- name: Extract version
id: get_version
run: echo "VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV # Use the tag name (e.g., v1.0.0)
run: echo "VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV # Extract the tag name correctly

- name: Build for Linux
run: |
Expand Down

0 comments on commit 6aeeb02

Please sign in to comment.