generated from Apodini/ApodiniTemplate
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (46 loc) · 1.45 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
#
# This source file is part of the Apodini open source project
#
# SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]>
#
# SPDX-License-Identifier: MIT
#
name: 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
with:
xcode-version: latest
- name: Check Environment
run: |
xcodebuild -version
swift --version
- name: Update Swift Packages Gateway
run: cd ./Shared && swift package update
- name: Update Swift Packages Database
run: cd ./WebService && 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 <[email protected]>
author: ApodiniBot <[email protected]>
reviewers: PSchmiedmayer