Skip to content

Commit 2903008

Browse files
authored
chore: remove podspec update script and adjust release configuration (#65)
Signed-off-by: Michael Beemer <[email protected]>
1 parent f481a51 commit 2903008

File tree

4 files changed

+6
-32
lines changed

4 files changed

+6
-32
lines changed

.github/workflows/release-please.yaml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,6 @@ jobs:
2424
run: |
2525
echo "$RELEASE_PLEASE_OUTPUT"
2626
27-
# Update podspec version when a release PR is created or updated
28-
- name: Checkout code if PR is generated/updated
29-
if: ${{ steps.release.outputs.pr }}
30-
uses: actions/checkout@v3
31-
with:
32-
ref: ${{ fromJSON(steps.release.outputs.pr).headBranchName }}
33-
34-
- name: Update podspec version
35-
if: ${{ steps.release.outputs.pr }}
36-
run: |
37-
./scripts/update_podspec.sh
38-
git config --global user.name "github-actions[bot]"
39-
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
40-
git add OpenFeature.podspec
41-
git commit -m "chore: update podspec version [skip ci]" || true
42-
git push
43-
4427
# Outputs are namespaced by package when using a manifest in Release Please
4528
outputs:
4629
release_created: ${{ steps.release.outputs['OpenFeature--release_created'] }}
@@ -51,5 +34,5 @@ jobs:
5134
# Trigger the CocoaPods workflow when a release is created
5235
cocoapods:
5336
needs: release-please
54-
if: ${{ needs.release-please.outputs.release_created == 'true' }}
37+
if: ${{ fromJSON(needs.release-please.outputs.release_created || false) }}
5538
uses: ./.github/workflows/cocoapods.yaml

OpenFeature.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'OpenFeature'
3-
s.version = '0.3.0'
3+
s.version = '0.3.0' # x-release-please-version
44
s.summary = 'OpenFeature iOS SDK'
55
s.description = <<-DESC
66
OpenFeature is an open specification that provides a vendor-agnostic, community-driven API for feature flagging that works with your favorite feature flag management tool or in-house solution.

release-please-config.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
"bump-patch-for-minor-pre-major": true,
88
"versioning": "default",
99
"include-v-in-tag": false,
10-
"extra-files": ["README.md"]
10+
"extra-files": [
11+
"README.md",
12+
"OpenFeature.podspec"
13+
]
1114
}
1215
},
1316
"changelog-sections": [

scripts/update_podspec.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)