# Automate the way you keep up with dependency changes in your Swift Package

Do you need help to keep your Swift package dependencies up-to-date?

GitHub action [swift-package-dependencies-check](https://github.com/marketplace/actions/swift-package-dependencies-check) is the ideal foundation to automate the process of
- periodically checking for outdated versions and
- creating a pull request to update `Package.resolved` file.

But how to check what's new or changed?

It was cumbersome to gather the release notes URLs of the outdated packages until now. But the [SwiftPackageIndex](https://swiftpackageindex.com/) team stepped up and [recently published](https://blog.swiftpackageindex.com/posts/keeping-up-with-dependency-changes/) command-line tool `swift-release-notes`, which gives you a list of links to the release notes for all the packages that have pending updates.

I genuinely believe this makes life easier for Swift Package developers, so I worked on the GitHub action to leverage `swift-release-notes` and add release URLs to the pull request.

![Pull Request created by reusable workflow](https://cdn.hashnode.com/res/hashnode/image/upload/v1643155086176/8ClENpIyF.png)

I created a workflow that you can reuse in your Swift Package to make it super easy.

```yml
name: Swift Package Dependencies

on:
  workflow_dispatch:
  schedule:
    - cron: '0 8 * * *' # every day at AM 8:00
jobs:
  dependencies:
    uses: MarcoEidinger/swift-package-dependencies-check/.github/workflows/reusableWorkflow.yml@v2
    with:
      commit-message: 'chore: update package dependencies'
```

All those changes are available in the latest version (**v2**) of the GitHub action.

%[https://github.com/marketplace/actions/swift-package-dependencies-check]

Give it a try, and you won't be surprised by your dependencies.
