Skip to content

Commit

Permalink
Removed unnecessary code from create-release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ArielDemarco committed Oct 18, 2024
1 parent a04a1a7 commit 4c4d797
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ on:
description: "Is the release candidate production ready"
type: boolean
default: false
override_version:
description: "Should delete previous podspec (if exist) and create a new one"
type: boolean
default: false

permissions:
id-token: write
Expand All @@ -46,6 +42,13 @@ jobs:
fetch-depth: 0
fetch-tags: true

- name: Define Production Readiness
run: |
if [ -z "$IS_PRODUCTION_READY" ]; then
echo "IS_PRODUCTION_READY=false" >> $GITHUB_ENV
fi
echo "Production readiness determined: $IS_PRODUCTION_READY"
- name: Validate and Extract RC Version Number
id: rc_version_extractor
run: |
Expand Down Expand Up @@ -297,13 +300,6 @@ jobs:
echo "COCOAPODS_VERSION_EXISTS=false" >> $GITHUB_ENV
fi
# Only can delete pre-productive releases in cocoapods
- name: Delete and recreate podspec
if: ${{ inputs.override_version }} && env.COCOAPODS_VERSION_EXISTS == 'true' && env.IS_PRODUCTION_READY == 'false'
run: |
echo "y" | pod trunk delete EmbraceIO $RC_VERSION || echo "Ignoring HTML Output"
echo "COCOAPODS_VERSION_EXISTS=false" >> $GITHUB_ENV
- name: Push EmbraceIO Podspec
if: env.COCOAPODS_VERSION_EXISTS == 'false'
run: |
Expand Down

0 comments on commit 4c4d797

Please sign in to comment.