Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
OmOmofonmwan committed Jun 12, 2024
1 parent cbb7630 commit 72b2f53
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/release_version_poc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ jobs:
outputs:
REUSE_DEV_VERSION: ${{env.NEXT_DEV_VERSION}}
REUSE_RELEASE_VERSION: ${{env.NEXT_RELEASE_VERSION}}
if: ${{github.event.inputs.action}} == "Custom"
if: ${{github.event.inputs.action}} == 'Custom'
steps:
- name: Stops If Fields Are Empty
if: ${{env.DEVELOPMENT_VERSION_INPUT}} == "" && ${{env.RELEASE_VERSION_INPUT}} == ""
if: ${{env.DEVELOPMENT_VERSION_INPUT}} == '' && ${{env.RELEASE_VERSION_INPUT}} == ''
run: |
echo "Please Enter A Development Or Release Version"
exit 1
Expand All @@ -55,36 +55,36 @@ jobs:
- name: Set Release Version
run: echo "NEXT_RELEASE_VERSION=${{env.POM_VERSION}}" >> $GITHUB_ENV
- name: If Developemt Version Is Entered And Does Not Contains SNAPSHOT
if: ${{env.DEVELOPMENT_VERSION_INPUT}} != "" && !contains(${{env.DEVELOPMENT_VERSION_INPUT}}, '-SNAPSHOT')
if: ${{env.DEVELOPMENT_VERSION_INPUT}} != '' && !contains(${{env.DEVELOPMENT_VERSION_INPUT}}, '-SNAPSHOT')
run: "Setting Next Dev To ${{env.NEXT_DEV_VERSION}}"
env:
NEXT_DEV_VERSION: ${{env.DEVELOPMENT_VERSION_INPUT}}
- name: If Developemt Version Is Entered And Contains SNAPSHOT
if: ${{env.DEVELOPMENT_VERSION_INPUT}} != "" && contains(${{env.DEVELOPMENT_VERSION_INPUT}}, '-SNAPSHOT')
if: ${{env.DEVELOPMENT_VERSION_INPUT}} != '' && contains(${{env.DEVELOPMENT_VERSION_INPUT}}, '-SNAPSHOT')
uses: xom9ikk/split@v1
id: splitVersionDev
with:
string: ${{env.DEVELOPMENT_VERSION_INPUT}}
separator: -SNAPSHOT
limit: -1
- name: If Developemt Version Is Entered And Contains SNAPSHOT - Set Enviroment
if: ${{env.DEVELOPMENT_VERSION_INPUT}} != "" && contains(${{env.DEVELOPMENT_VERSION_INPUT}}, '-SNAPSHOT')
if: ${{env.DEVELOPMENT_VERSION_INPUT}} != '' && contains(${{env.DEVELOPMENT_VERSION_INPUT}}, '-SNAPSHOT')
run: echo "NEXT_DEV_VERSION=${{steps.splitVersionDev.outputs._0}}"
- name: If Release Version Is Entered And Does Not Contains SNAPSHOT
if: ${{env.RELEASE_VERSION_INPUT}} != "" && !contains(${{env.RELEASE_VERSION_INPUT}}, '-SNAPSHOT')
if: ${{env.RELEASE_VERSION_INPUT}} != '' && !contains(${{env.RELEASE_VERSION_INPUT}}, '-SNAPSHOT')
run: "Setting Next Release To ${{env.NEXT_RELEASE_VERSION}}"
env:
NEXT_RELEASE_VERSION: ${{env.RELEASE_VERSION_INPUT}}
- name: If Release Version Is Entered And Contains SNAPSHOT
if: ${{env.RELEASE_VERSION_INPUT}} != "" && contains(${{env.RELEASE_VERSION_INPUT}}, '-SNAPSHOT')
if: ${{env.RELEASE_VERSION_INPUT}} != '' && contains(${{env.RELEASE_VERSION_INPUT}}, '-SNAPSHOT')
uses: xom9ikk/split@v1
id: splitVersionRelease
with:
string: ${{env.RELEASE_VERSION_INPUT}}
separator: -SNAPSHOT
limit: -1
- name: If Release Version Is Entered And Contains SNAPSHOT - Set Enviroment
if: ${{env.DEVELOPMENT_VERSION_INPUT}} != "" && contains(${{env.DEVELOPMENT_VERSION_INPUT}}, '-SNAPSHOT')
if: ${{env.DEVELOPMENT_VERSION_INPUT}} != '' && contains(${{env.DEVELOPMENT_VERSION_INPUT}}, '-SNAPSHOT')
run: echo "NEXT_RELEASE_VERSION=${{steps.splitVersionRelease.outputs._0}}"


Expand All @@ -101,7 +101,7 @@ jobs:
get_version:
runs-on: ubuntu-latest
name: Get Version
if: ${{github.event.inputs.action}} != "Custom"
if: ${{github.event.inputs.action}} != 'Custom'
outputs:
RELEASE_VERSION: ${{steps.splitVersion.outputs._0}}
_MAJOR: ${{steps.splitVersionMinor.outputs._0}}
Expand Down

0 comments on commit 72b2f53

Please sign in to comment.