fix: CocoaPods publishing workflow #94
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR
update_podspec.shscript from the CocoaPods workflowRelated Issues
Fixes #91
Notes
2 issues
pod-publishcondition isswift-sdk/.github/workflows/cocoapods.yaml
Line 23 in 09ca50a
pusheventsswift-sdk/.github/workflows/release-please.yaml
Lines 1 to 4 in 09ca50a
workflow_callswift-sdk/.github/workflows/release-please.yaml
Line 38 in 09ca50a
swift-sdk/.github/workflows/cocoapods.yaml
Line 5 in 09ca50a
workflow_callfrom a push-triggered workflow, the event context is inherited according to GitHub documentation and GitHub issue #3146, sogithub.event_namewould be 'push', not 'release'release_createdcheckevent_namechecks in the other OpenFeature SDKs using release-pleaseupdate_podspec.shscript was removed in 2903008 when release-please was configured to automatically manage the podspec version. However, the CocoaPods workflow still referenced this missing script, which would cause the publishing step to fail.# x-release-please-versioncommentswift-sdk/OpenFeature.podspec
Line 3 in 09ca50a
is a release-please marker that tells release-please to automatically update the version number on that line during the release process. This generic updater works with any file type when configured in the
extra-filesoption, eliminating the need for a separate script to update versions.swift-sdk/release-please-config.json
Lines 10 to 13 in 09ca50a
./scripts/update_podspec.shin workflowFollow-up Tasks
How to test
Will have to see if it works with the next release and check logs if it fails.