From cd8f0d631b679371141242bae7e6413fe067edd1 Mon Sep 17 00:00:00 2001 From: Thilo Molitor Date: Wed, 16 Oct 2024 11:07:26 +0200 Subject: [PATCH] Try to automatically create swift pm dependency update prs --- .../workflows/xcode-swift-dependencies.yaml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/xcode-swift-dependencies.yaml 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'