Publish as composite Marketplace action#1
Merged
Conversation
- action.yml: composite action with project/working-directory/xcode-version/ fail-when-outdated/dry-run inputs and dependencies-changed/changed-count outputs. - update_spm.py: add --search-dir autodetect, --fail-when-outdated, and $GITHUB_OUTPUT emission. Synthetic-manifest logic unchanged. - examples/update-spm.yml: consumer workflow that calls the action and opens a PR via peter-evans/create-pull-request. - .github/workflows/test.yml: macOS self-test that runs the action against a committed pbxproj fixture in dry-run and asserts the outputs. - README, LICENSE (MIT), CHANGELOG for v1.0.0. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
action.yml(composite) and a self-containedupdate_spm.pyso this repo can ship to the GitHub Marketplace.xcodebuild -resolvePackageDependenciesby handing a syntheticPackage.swifttoswift package update; new flags add--search-dirautodetect,--fail-when-outdated, and$GITHUB_OUTPUTemission fordependencies-changed/changed-count.update-spm.ymlintoexamples/as a consumer workflow that pinsmaximbilan/xcode-spm-update@v1, runs onmacos-15, and opens a PR viapeter-evans/create-pull-requestonly whendependencies-changed == 'true'..github/workflows/test.ymlself-test that runs the local action (uses: ./) against a committed pbxproj fixture indry-run, asserts outputs are set and that noPackage.resolvedis written.README.md(rationale, inputs/outputs tables, full example, caveats), MITLICENSE, andCHANGELOG.mdforv1.0.0.Test plan
.github/workflows/test.ymlgoes green on this PR (runsuses: ./againsttest/fixture/Sample.xcodeproj, assertsdependencies-changed=true,changed-countis an integer, and noPackage.resolvedis written in dry-run).python3 update_spm.py --helpshows--project,--search-dir,--dry-run,--fail-when-outdated.python3 update_spm.py --project test/fixture/Sample.xcodeproj --print-manifestrenders a manifest with both fixture deps.v1.0.0and move a floatingv1tag to it before checking "Publish to Marketplace" on the release page.🤖 Generated with Claude Code