Skip to content

Commit

Permalink
Try to automatically create swift pm dependency update prs
Browse files Browse the repository at this point in the history
  • Loading branch information
tmolitor-stud-tu committed Oct 16, 2024
1 parent b0897d5 commit 2775e2b
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/xcode-swift-dependencies.yaml
Original file line number Diff line number Diff line change
@@ -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: monal-im/action-xcodeproj-spm-update@main
with:
forceResolution: true
failWhenOutdated: false
directory: Monal
workspace: 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

0 comments on commit 2775e2b

Please sign in to comment.