-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.52 KB
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#
# This source file is part of the Continous Delivery open source project
#
# SPDX-FileCopyrightText: 2022 Paul Schmiedmayer <paul.schmiedmayer@tum.de>
#
# SPDX-License-Identifier: MIT
#
name: Swift Package and Fastlane Update
on:
schedule:
- cron: '0 0 1 * *'
workflow_dispatch:
jobs:
createPR:
name: Create Pull Request
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Check Environment
run: |
xcodebuild -version
swift --version
- name: Update Swift Packages Shared
run: |
cd ./Shared
swift package update
- name: Update Swift Packages Web Service
run: |
cd ./WebService
swift package update
- name: Update Swift Packages Xcode Project
run: |
rm -f App.xcworkspace/xcshareddata/swiftpm/Package.resolved
xcodebuild -resolvePackageDependencies
- name: Update Fastlane
run: bundle update fastlane
- uses: peter-evans/create-pull-request@v4
with:
# Using an access token triggers GitHub actions in the create PR. Remove the token to use the GitHub Action bot to create the PR without triggering the GitHub Actions
token: ${{ secrets.ACCESS_TOKEN }}
commit-message: Update dependencies
title: Update dependencies
body: Update Fastlane and the Swift Package dependencies.
delete-branch: true
base: main
branch: bots/update-dependencies