From 9540be353a36f91abf0a4c7dcc106edc8f691f5d 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 | 43 +++++++++++++++++++ 1 file changed, 43 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..a2d3f4704 --- /dev/null +++ b/.github/workflows/xcode-swift-dependencies.yaml @@ -0,0 +1,43 @@ +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@v7 + with: + token: ${{ secrets.PAT }} + commit-message: Update Xcode Dependencies + title: Updated Xcode Dependencies + body: | + - Dependency updates + + Auto-generated by [create-pull-request][1] + + [1]: https://github.com/peter-evans/create-pull-request + branch: update-dependencies + delete-branch: true