Skip to content

Commit

Permalink
Try echo'ing pwd in update version in mix.exs step
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverswitzer committed Nov 26, 2024
1 parent 7be6dfe commit a54c02e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,18 @@ jobs:
env:
RELEASE_VERSION: ${{ steps.version.outputs.version }}
run: |
# Checkout the repository
git checkout ${{ github.ref }}
# Configure Git user
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
sed -i '' 's/version: ".*"/version: "'${RELEASE_VERSION#v}'"/g' mix.exs mix.exs
# Update version in mix.exs
sed -i 's/version: ".*"/version: "'${RELEASE_VERSION#v}'"/g' mix.exs
git add mix.exs
git commit -m "chore: Bump version to ${RELEASE_VERSION}"
git push
git push origin ${{ github.ref }}
- name: Create GitHub Release
env:
Expand Down

0 comments on commit a54c02e

Please sign in to comment.