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 c5f9c72
Show file tree
Hide file tree
Showing 2 changed files with 149 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.GITHUB_TOKEN }}
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
106 changes: 106 additions & 0 deletions Monal/Monal.xcworkspace/xcshareddata/swiftpm/Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"object": {
"pins": [
{
"package": "ActivityIndicatorView",
"repositoryURL": "https://github.com/exyte/ActivityIndicatorView",
"state": {
"branch": null,
"revision": "9970fd0bb7a05dad0b6566ae1f56937716686b24",
"version": "1.1.1"
}
},
{
"package": "Chat",
"repositoryURL": "https://github.com/exyte/Chat",
"state": {
"branch": null,
"revision": "5d6a7c6f74761a0eda2816a50c4912d86f2355eb",
"version": "2.0.7"
}
},
{
"package": "CocoaLumberjack",
"repositoryURL": "https://github.com/cocoalumberjack/cocoalumberjack",
"state": {
"branch": null,
"revision": "4b8714a7fb84d42393314ce897127b3939885ec3",
"version": "3.8.5"
}
},
{
"package": "FloatingButton",
"repositoryURL": "https://github.com/exyte/FloatingButton",
"state": {
"branch": null,
"revision": "cf77c2f124df1423d90a9a1985e9b9ccfa4b9b3e",
"version": "1.3.0"
}
},
{
"package": "FrameUp",
"repositoryURL": "https://github.com/ryanlintott/FrameUp",
"state": {
"branch": null,
"revision": "a11961701a98d4a324843276b55a2a2c43870161",
"version": "0.9.2"
}
},
{
"package": "ExyteMediaPicker",
"repositoryURL": "https://github.com/exyte/MediaPicker.git",
"state": {
"branch": null,
"revision": "88769b1b69c2b5e5fa5b65522c08bc7b667a6cb8",
"version": "2.2.3"
}
},
{
"package": "SVGView",
"repositoryURL": "https://github.com/exyte/SVGView",
"state": {
"branch": null,
"revision": "6465962facdd25cb96eaebc35603afa2f15d2c0d",
"version": "1.0.6"
}
},
{
"package": "swift-collections",
"repositoryURL": "https://github.com/apple/swift-collections.git",
"state": {
"branch": null,
"revision": "671108c96644956dddcd89dd59c203dcdb36cec7",
"version": "1.1.4"
}
},
{
"package": "swift-log",
"repositoryURL": "https://github.com/apple/swift-log",
"state": {
"branch": null,
"revision": "9cb486020ebf03bfa5b5df985387a14a98744537",
"version": "1.6.1"
}
},
{
"package": "swiftui-introspect",
"repositoryURL": "https://github.com/siteline/swiftui-introspect",
"state": {
"branch": null,
"revision": "807f73ce09a9b9723f12385e592b4e0aaebd3336",
"version": "1.3.0"
}
},
{
"package": "ViewExtractor",
"repositoryURL": "https://github.com/GeorgeElsham/ViewExtractor",
"state": {
"branch": null,
"revision": "e20b1944524d4454c2a65c0054ce345c2c5d0185",
"version": "2.0.0"
}
}
]
},
"version": 1
}

0 comments on commit c5f9c72

Please sign in to comment.