Skip to content

Commit

Permalink
CI // Add a runner for auto-updating SPM dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
ShikiSuen committed Aug 21, 2024
1 parent 07a6a1c commit 846cca9
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/update_spm_dependency.yml
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

0 comments on commit 846cca9

Please sign in to comment.