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 b3904bb commit c95bb40
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/update_spm_dependency.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Update SPM Dependencies
'on':
workflow_dispatch: {}
schedule:
- cron: 0 12 * * *
jobs:
update:
name: Update Swift Dependencies
runs-on: ubuntu-latest
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
- 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 c95bb40

Please sign in to comment.