Skip to content

Commit

Permalink
Testin release_version
Browse files Browse the repository at this point in the history
  • Loading branch information
OmOmofonmwan committed Jul 8, 2024
1 parent 9603798 commit ce5642a
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/release_version_poc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,15 @@ jobs:
echo "SNAPSHOT_VERSION=${{env.CUSTOM_SNAPSHOT_VERSION}}" >> $GITHUB_OUTPUT
echo "RELEASE_VERSION=${{env.RELEASE_VERSION_INPUT || needs.get_current_version.outputs.CURRENT_RELEASE_VERSION}}" >> $GITHUB_OUTPUT
# call_release_workflow_with_custom_inputs:
# needs: get_custom_inputs
# uses: ikmdev/github_actions_test/.github/workflows/reusable_release_workflow.yaml@main
# permissions: write-all
# secrets: inherit
# with:
# snapshot_version: ${{needs.get_custom_inputs.outputs.SNAPSHOT_VERSION}}
# release_version: ${{needs.get_custom_inputs.outputs.RELEASE_VERSION}}
call_release_workflow_with_custom_inputs:
needs: get_custom_inputs
name: Call Release Workflow With Custom Inputs
uses: ikmdev/build-parent/.github/workflows/reusable_release_workflow.yaml@main
permissions: write-all
secrets: inherit
with:
snapshot_version: ${{needs.get_custom_inputs.outputs.SNAPSHOT_VERSION}}
release_version: ${{needs.get_custom_inputs.outputs.RELEASE_VERSION}}


get_major_minor_patch_inputs:
Expand Down Expand Up @@ -151,17 +152,17 @@ jobs:
fi
- name: Print Versions
run: |
echo "Next Development Version: ${{steps.nextSnapshotVersion.outputs.NEXT_SNAPSHOT_VERSION}}"
echo "Next Development Version: ${{steps.nextSnapshotVersion.outputs.NEXT_SNAPSHOT_VERSION}}-SNAPSHOT"
echo "Release Version: ${{needs.get_major_minor_patch_inputs.outputs.RELEASE_VERSION}}"
call_release_workflow:
needs:
- get_custom_inputs
call_release_workflow_incremented_version:
needs:
- increment_version
uses: ikmdev/github_actions_test/.github/workflows/reusable_release_workflow.yaml@main
uses: ikmdev/build-parent/.github/workflows/reusable_release_workflow.yaml@main
name: Call Release Workflow With Incremented Version
permissions: write-all
secrets: inherit
with:
snapshot_version: ${{needs.get_custom_inputs.outputs.SNAPSHOT_VERSION || needs.increment_version.outputs.NEXT_SNAPSHOT_VERSION}}
release_version: ${{needs.get_custom_inputs.outputs.RELEASE_VERSION || needs.increment_version.outputs.RELEASE_VERSION}}
snapshot_version: ${{needs.increment_version.outputs.NEXT_SNAPSHOT_VERSION}}-SNAPSHOT
release_version: ${{needs.increment_version.outputs.RELEASE_VERSION}}

0 comments on commit ce5642a

Please sign in to comment.