You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sectionkit2_version=$(ruby -ne "puts \$1 if /s\.version\s*=\s*'([^']+)'/" SectionKit2.podspec)
190
+
sectionui_version=$(ruby -ne "puts \$1 if /s\.version\s*=\s*'([^']+)'/" SectionUI.podspec)
191
+
sectionui_dependency=$(ruby -ne "puts \$1 if /s\.dependency 'SectionKit2', '([^']+)'/" SectionUI.podspec)
194
192
195
193
if [[ "$sectionkit2_version" != "$version" ]]; then
196
194
echo "::error::SectionKit2.podspec version '$sectionkit2_version' does not match tag version '$version'"
@@ -204,8 +202,8 @@ jobs:
204
202
echo "::error::SectionUI dependency on SectionKit2 is '$sectionui_dependency', expected '>= $version'"
205
203
exit 1
206
204
fi
207
-
if [[ "$sectionkit2_source_tag" != "$version" || "$sectionui_source_tag" != "$version" ]]; then
208
-
echo "::error::Podspec source tags must match bare version '$version' because CocoaPods fetches s.source[:tag]. Got SectionKit2='$sectionkit2_source_tag', SectionUI='$sectionui_source_tag'."
205
+
if ! grep -q ':tag => "#{s.version}"' SectionKit2.podspec || ! grep -q ':tag => "#{s.version}"' SectionUI.podspec; then
206
+
echo "::error::Podspec source tags must use #{s.version} so CocoaPods fetches the release tag."
209
207
exit 1
210
208
fi
211
209
if ! git rev-parse "$version^{commit}" >/dev/null 2>&1; then
0 commit comments