Skip to content

nthState/SwiftAcknowledgements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate Acknowledgement file from used Swift Packages

About

If you use Swift Packages in your project and want to create a record of the LICENSE files for each package.

We create a *.plist file that you can embed into your app

Example

name: Example Workflow

on: [push]

jobs:
  example_job:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v4
      
      - name: Generate plist of all used LICENSES
        uses: nthState/SwiftAcknowledgements
        with:
          SPM_CHECKOUT_DIR: ${{ github.workspace }}/.build/checkouts"
          FILE_NAME: "/some/acknolegements.plist"

Inputs

SPM_CHECKOUT_DIR

Required Where the Swift Package Manager files are checked out to

FILE_NAME

Required The file name/path that you want to generate

Outputs

PLAIN_TEXT

If you want to generate the text as plain text, use this option

Testing

Docker

Build the docker

docker build . -t githubactiontest -f Dockerfile

Run the docker

docker run \
-e SPM_CHECKOUT_DIR=path to checkout dir \
-e FILE=Acknowledgements.plist \
-d githubactiontest

Running main.py directly

Note: Your path may differ

export SPM_CHECKOUT_DIR="/Users/chrisdavis/Library/Developer/Xcode/DerivedData/App-gktkfhtswsmjzdhkguhoaotlhihx/SourcePackages/checkouts"
export FILE_NAME="~/Acknowledgements.plist"
python3 main.py

About

Generate Acknowledgement file from used Swift Packages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published