diff --git a/.github/workflows/xcode-swift-dependencies.yaml b/.github/workflows/xcode-swift-dependencies.yaml new file mode 100644 index 000000000..b9c9067d0 --- /dev/null +++ b/.github/workflows/xcode-swift-dependencies.yaml @@ -0,0 +1,36 @@ +name: Xcode Dependencies + +on: + schedule: + - cron: '17 13 * * *' + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +jobs: + dependencies: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + + - name: Resolve Dependencies + id: resolution + uses: GetSidetrack/action-xcodeproj-spm-update@main + with: + forceResolution: true + failWhenOutdated: false + directory: 'Monal' + workspace: 'Monal/Monal.xcworkspace' + scheme: 'Monal Alpha' + + - name: Create Pull Request + if: steps.resolution.outputs.dependenciesChanged == 'true' + uses: peter-evans/create-pull-request@v3 + with: + branch: 'dependencies/ios' + delete-branch: true + commit-message: 'Update Xcode Dependencies' + title: 'Updated Xcode Dependencies'