Skip to content

Commit

Permalink
checkout to main branch to not be in detached HEAD mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sbordeyne committed Aug 17, 2024
1 parent 9d6718d commit 2cebe82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ jobs:
- name: 📝 Update version from git tag
run: |
sed -i --regexp-extended --expression="s/^version = \"[0-9\.]+\"/version = \"${{ github.event.release.tag_name }}\"/g" Cargo.toml
git config --global user.name 'GitHub Action'
git config --global user.email '[email protected]'
git checkout ${{ steps.env.outputs.default-branch }}
sed -i --regexp-extended --expression="s/^version = \"[0-9\.]+\"/version = \"${{ github.event.release.tag_name }}\"/g" Cargo.toml
git add Cargo.toml
git commit -m "bump version to ${{ github.event.release.tag_name }}"
git push ${{ steps.env.outputs.remote }} ${{ steps.env.outputs.default-branch }}
Expand Down

0 comments on commit 2cebe82

Please sign in to comment.