-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI // Add a runner for auto-updating SPM dependencies.
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Update SPM Dependencies | ||
|
||
on: | ||
workflow_dispatch: {} | ||
schedule: | ||
- cron: '0 12 * * *' | ||
|
||
jobs: | ||
update: | ||
name: Update Swift Dependencies | ||
runs-on: ubuntu-latest # The action supports macOS-latest as well | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Install Swift | ||
uses: swift-actions/setup-swift@v1 | ||
- name: Checkout swift-dependency-updater | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: Nef10/swift-dependency-updater | ||
path: swift-dependency-updater | ||
ref: main # specify a version tag or use main to always use the latest code | ||
- name: Run swift-dependency-updater | ||
run: cd swift-dependency-updater && swift run swift-dependency-updater github ../repo | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: update-SPM-Dependencies-${{ github.run_number }} | ||
base: main | ||
title: "Update SPM Dependencies" | ||
body: | | ||
This PR updates SPM Dependencies. | ||
delete-branch: true | ||
assignees: ShikiSuen | ||
reviewers: ShikiSuen | ||
team-reviewers: | | ||
owners | ||
maintainers |