Skip to content

Instantly share code, notes, and snippets.

@MarcoEidinger
Last active October 11, 2020 04:30
Show Gist options
  • Save MarcoEidinger/920f4debec7f7b91b8bfe45f5a437511 to your computer and use it in GitHub Desktop.
Save MarcoEidinger/920f4debec7f7b91b8bfe45f5a437511 to your computer and use it in GitHub Desktop.
Workflow to periodically check for outdated Swift Package dependencies and then create a pull request to update them
name: Swift Package Dependencies
on:
schedule:
- cron: '0 8 * * 1' # every monday AM 8:00
jobs:
spm-dep-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check Swift package dependencies
uses: MarcoEidinger/swift-package-dependencies-check@1.0.0
with:
isMutating: true
- name: Create Pull Request
if: failure()
uses: peter-evans/create-pull-request@v3
with:
commit-message: 'chore: update package dependencies'
branch: updatePackageDepedencies
delete-branch: true
title: 'chore: update package dependencies'
body: ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment