Skip to content

Commit

Permalink
Update version-update-workflow.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Raoul Linnenbank <[email protected]>
  • Loading branch information
rflinnenbank authored Nov 1, 2022
1 parent af9c169 commit 81bf454
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/version-update-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ jobs:
poetry config http-basic.nexus ${{ secrets.EKS_NEXUS_USER }} ${{ secrets.EKS_NEXUS_PASSWORD }}
# Determine the current version of the application (for main branch)
- name: Determine current version
if: ${{ github.ref_name == 'main-v2' }}
if: ${{ github.ref_name == 'main-2.0' }}
run: |
version="$(poetry version --short)${{ github.run_number }}"
echo "Package version: $version"
echo "package_version=$version" >> $GITHUB_ENV
# Determine the current version of the application (for non-main branch)
- name: Determine a version non-main branch
if: ${{ github.ref_name != 'main-v2' }}
if: ${{ github.ref_name != 'main-2.0' }}
run: |
version="$(poetry version --short)rc${{ github.run_number }}" # rc
echo "Package version: $version"
Expand All @@ -103,6 +103,7 @@ jobs:
poetry publish --build
# Create a Release on GitHub for the new package
- name: Create a Release for the new package
if: ${{ github.ref_name == 'main-2.0' }}
uses: softprops/[email protected]
with:
tag_name: ${{ env.package_version }}
Expand Down

0 comments on commit 81bf454

Please sign in to comment.