Skip to content

Commit

Permalink
Merge pull request #2191 from CruGlobal/GT-create-version
Browse files Browse the repository at this point in the history
Update create version
  • Loading branch information
levieggertcru authored Jul 10, 2024
2 parents 4d75ffe + ef9c175 commit aef4c97
Showing 1 changed file with 38 additions and 35 deletions.
73 changes: 38 additions & 35 deletions .github/workflows/create-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,44 +49,26 @@ jobs:
echo echo "value=false" >> "$GITHUB_OUTPUT"
fi
fastlane_increment_version:
name: Fastlane Increment Version
runs-on: macos-14
needs: [ version_increment_is_bump ]
if: ${{ needs.version_increment_is_bump.outputs.isBump == 'true' || inputs.versionIncrementType == 'manual' }}
steps:
- name: Increment Version
run: |
if [ ${{ needs.version_increment_is_bump.outputs.isBump }} == 'true' ]; then
bundle exec fastlane cru_shared_lane_increment_version_number bump_type:${{ inputs.versionIncrementType }}
elif [ ${{ inputs.versionIncrementType }} == 'manual' ]; then
bundle exec fastlane cru_shared_lane_increment_version_number version_number:${{ inputs.manualVersionNumber }}
else
echo "No Version"
fi
# fastlane_bump_version:
# name: Fastlane Bump Version
# runs-on: macos-14
# needs: [ version_increment_is_bump ]
# if: ${{ needs.version_increment_is_bump.outputs.isBump == 'true' }}
# steps:
# - name: Run Fastlane Bump Version
# run: bundle exec fastlane cru_shared_lane_increment_version_number bump_type:${{ inputs.versionIncrementType }}

# fastlane_set_version:
# name: Fastlane Set Version
# runs-on: macos-14
# needs: [ version_increment_is_bump ]
# if: ${{ needs.version_increment_is_bump.outputs.isBump == 'false' }}
# steps:
# - name: Run Fastlane Set Version
# run: bundle exec fastlane cru_shared_lane_increment_version_number version_number:${{ inputs.manualVersionNumber }}
increment_version:
name: Fastlane Increment Version
runs-on: macos-14
needs: [ version_increment_is_bump ]
if: ${{ needs.version_increment_is_bump.outputs.isBump == 'true' || inputs.versionIncrementType == 'manual' }}
steps:
- name: Increment Version
run: |
if [ ${{ needs.version_increment_is_bump.outputs.isBump }} == 'true' ]; then
bundle exec fastlane cru_shared_lane_increment_version_number bump_type:${{ inputs.versionIncrementType }}
elif [ ${{ inputs.versionIncrementType }} == 'manual' ]; then
bundle exec fastlane cru_shared_lane_increment_version_number version_number:${{ inputs.manualVersionNumber }}
else
echo "No Version"
fi
current_version:
name: Store Current Version
runs-on: ubuntu-latest
needs: [ fastlane_increment_version ]
needs: [ increment_version ]
if: github.event_name == 'workflow_dispatch'
outputs:
version: ${{ steps.version.outputs.version }}
Expand Down Expand Up @@ -232,4 +214,25 @@ jobs:
# with:
# branch: "versions/${{ needs.new_version.outputs.version }}"
# title: "Version ${{needs.new_version.outputs.version}}"
# commit-message: "Increase version to ${{needs.new_version.outputs.version}}"
# commit-message: "Increase version to ${{needs.new_version.outputs.version}}"




# fastlane_bump_version:
# name: Fastlane Bump Version
# runs-on: macos-14
# needs: [ version_increment_is_bump ]
# if: ${{ needs.version_increment_is_bump.outputs.isBump == 'true' }}
# steps:
# - name: Run Fastlane Bump Version
# run: bundle exec fastlane cru_shared_lane_increment_version_number bump_type:${{ inputs.versionIncrementType }}

# fastlane_set_version:
# name: Fastlane Set Version
# runs-on: macos-14
# needs: [ version_increment_is_bump ]
# if: ${{ needs.version_increment_is_bump.outputs.isBump == 'false' }}
# steps:
# - name: Run Fastlane Set Version
# run: bundle exec fastlane cru_shared_lane_increment_version_number version_number:${{ inputs.manualVersionNumber }}

0 comments on commit aef4c97

Please sign in to comment.