Skip to content

Commit

Permalink
update the workflow for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
garegincontractor authored and garegincontractor committed Sep 21, 2023
1 parent 7142842 commit 28e6b25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python-bump2version-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ jobs:
- name: Increase version for PR
id: pr_version
if: "${{ github.event_name == 'push' && github.ref == 'refs/heads/staging-DEV-3804' }}"
if: "${{ github.event_name == 'pull_request' && github.event.repository.default_branch == github.event.pull_request.base.ref }}"
run: |
bump2version release --allow-dirty --verbose --serialize {major}.{minor}.{patch}-dev${{ github.event.number }}${{github.run_number}}
echo PR_VERSION=$(python setup.py --version) >> $GITHUB_OUTPUT
- name: Release version
id: release_version
if: "${{ github.event_name == 'push' && github.event.repository.default_branch == github.ref_name }}"
if: "${{ github.event_name == 'push' && github.ref == 'refs/heads/staging-DEV-3804' }}"
run: |
bump2version release --serialize {major}.{minor}.{patch} --verbose --allow-dirty
echo RELEASE_VERSION=$(python setup.py --version) >> $GITHUB_OUTPUT
Expand All @@ -66,7 +66,7 @@ jobs:
- name: Update develop version
id: dev_version
if: "${{ github.event_name == 'push' && github.event.repository.default_branch == github.ref_name }}"
if: "${{ github.event_name == 'push' && github.ref == 'refs/heads/staging-DEV-3804' }}"
run: |
bump2version patch --serialize {major}.{minor}.{patch}-{release} --verbose --allow-dirty
echo DEV_VERSION=$(python setup.py --version) >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 28e6b25

Please sign in to comment.