generated from Apodini/Template-Repository
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.63 KB
/
spm-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
#
# This source file is part of the Collector-Analyst-Presenter Example open source project
#
# SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <paul.schmiedmayer@tum.de>
#
# SPDX-License-Identifier: MIT
#
name: Swift Package Update
on:
schedule:
- cron: '0 0 1 * *'
workflow_dispatch:
jobs:
createPR:
name: Create Pull Request
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1.1
with:
xcode-version: latest
- name: Check Xcode version
run: xcodebuild -version
- name: Check Swift version
run: swift --version
- name: Update Swift Packages Gateway
run: cd ./Gateway && swift package update
- name: Update Swift Packages Database
run: cd ./Database && swift package update
- name: Update Swift Packages Processing
run: cd ./Processing && swift package update
- name: Update Swift Packages Xcode Projekt
run: |
rm -f Example.xcworkspace/xcshareddata/swiftpm/Package.resolved
xcodebuild -resolvePackageDependencies
- uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.ACCESS_TOKEN }}
commit-message: Update dependencies
title: Update dependencies
body: Update the Swift Package dependencies.
delete-branch: true
base: develop
branch: bots/update-dependencies
assignees: ApodiniBot
committer: ApodiniBot <ApodiniBot@users.noreply.github.com>
author: ApodiniBot <ApodiniBot@users.noreply.github.com>
reviewers: PSchmiedmayer