Skip to content

A GitHub Action to monitor your Swift Package Manager dependencies.

Notifications You must be signed in to change notification settings

sbertix/spm-dependencies-checker

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPM Dependencies Checker

This action process your Package.swift file to detect your Swift Package Manager dependencies, and compiles a list with all outdated ones.

Usage

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

Inputs

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.

Outputs

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"
  }
]

About

A GitHub Action to monitor your Swift Package Manager dependencies.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published