Add workflow to update xcode project swift packages #1
Workflow file for this run
This file contains 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
name: Update Swift Package Dependencies | ||
on: | ||
schedule: | ||
- cron: '0 0 * * 5' | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
update_swift_package_dependencies: | ||
runs-on: macos-15 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Resolve Dependencies | ||
id: resolution | ||
uses: GetSidetrack/action-xcodeproj-spm-update@main | ||
with: | ||
directory: godtools | ||
workspace: 'godtools.xcworkspace' | ||
scheme: 'GodTools-Production' | ||
forceResolution: true | ||
failWhenOutdated: false | ||
- name: Create Pull Request | ||
if: steps.resolution.outputs.dependenciesChanged == 'true' | ||
uses: peter-evans/create-pull-request@v7 | ||
with: | ||
branch: 'dependencies/xcode-swift-package-dependencies' | ||
delete-branch: true | ||
commit-message: 'Update Xcode Dependencies' | ||
title: 'Updated Xcode Dependencies' |