Skip to content

Commit

Permalink
ci(version): fix bump version job (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
bathienle authored Nov 18, 2024
1 parent 5392487 commit 1fd95b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@ jobs:
uses: actions/checkout@v3

- name: Get Version from Tag
id: get_version
run: echo "VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV

- name: Bump version
run: |
echo "Bump version in __version__.py to $VERSION"
sed -i "s/^__version__ = .*/__version__ = \"$VERSION\"/" ./${{ github.event.repository.name }}/__version__.py
sed -i "s/^__version__ = .*/__version__ = \"$VERSION\"/" ./pims_plugin_format_dicom/__version__.py
- name: Commit Changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add ./${{ github.event.repository.name }}/__version__.py
git add ./pims_plugin_format_dicom/__version__.py
git commit -m "chore(semver): bump version to $VERSION"
- name: Push Changes
run: git push origin HEAD:refs/heads/main

create-release:
runs-on: ubuntu-latest
needs: bump-version

steps:
- name: Prerelease check
Expand Down

0 comments on commit 1fd95b8

Please sign in to comment.