This action process your Package.swift
file to detect your Swift Package Manager dependencies, and compiles a list with all outdated ones.
This action needs to run on macOS and requires actions/checkout in order to function correctly. A possible workflow could be as following:
name: dependencies
on:
schedule:
- cron: "0 0 * * *"
jobs:
dependencies:
runs-on: macos-latest
steps:
- uses: actions/checkout@master
- uses: sbertix/spm-dependencies-checker@master
with:
language: html # optional. Defaults to `markdown`.
excluding: | # optional. Packages you want to exclude.
ComposableRequest
@sbertix
language (optional)
An optional string
holding either html
or txt
(otherwise txt
is used), representing the language used for the message
output.
excluding (optional)
A string
made of newline-separated components, either representing library names or authors (when starting with @
) to exclude from the analysis.
message
A plain (or HTML, depending on language
input) string
with outdated dependencies info.
txt
https://github.com/sbertix/Swiftagram 4.0.0 -> 4.1.0 need(s) updating.
html
<h3>Dependencies</h3>
<ul>
<li>
<a href='https://github.com/sbertix/Swiftagram'><strong>sbertix/Swiftagram</strong></a>
<ul>
<li><i>installed</i>: <code>4.0.0</code></li>
<li><b>last</b>: <code>4.1.0</code></li>
</ul>
</li>
</ul>
outdated-dependencies
A string
holding the JSON representation of the array
containing the list of all outdated dependencies.
[
{
"name": "Swiftagram",
"owner": "Sbertix",
"url": "https://github.com/sbertix/Swiftagram",
"installed": "4.0.0",
"last": "4.1.2"
}
]