Skip to content

Commit

Permalink
release workflow should not fail if mix.exs already at correct version
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilger committed Nov 2, 2023
1 parent 3ae75dd commit d66b645
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ jobs:
git config --local user.name "GitHub Action"
git commit -m "Update version in mix.exs to $VERSION" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
run: |
VERSION=${{ github.ref }}
VERSION=${VERSION#refs/tags/v}
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git diff --quiet || git push origin HEAD:main
- name: Delete existing tag
run: |
VERSION=${{ github.ref }}
Expand Down

0 comments on commit d66b645

Please sign in to comment.