Skip to content

Commit

Permalink
🔧 fix: improve release workflow by adding explicit branch reference a…
Browse files Browse the repository at this point in the history
…nd dependencies
  • Loading branch information
watzon committed Nov 22, 2024
1 parent 02f9aea commit e450742
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,18 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
- name: Update version
run: |
sed -i "s/const Version = \".*\"/const Version = \"${GITHUB_REF_NAME}\"/" pkg/version/version.go
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add pkg/version/version.go
git commit -m "Update version to ${GITHUB_REF_NAME}"
git push
git push origin main
goreleaser:
needs: update-version
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down

0 comments on commit e450742

Please sign in to comment.