This Github action module will display the packages maintained by a certain user.
To use this GitHub Action, you’ll need to create a workflow file in your repository’s .github/workflows
directory. For example, you could create a file called maintained_by_qjoly.yml
with the following contents:
name: Run action on test.md
on:
push:
branches:
- main
jobs:
run_action:
runs-on: ubuntu-latest
name: Run 'Nix-Maintained_by'
steps:
- uses: actions/checkout@v3 # Clone your code
- uses: actions/checkout@v3 # Clone NixPkgs
with:
path: './nixpkgs'
repository: 'NixOS/nixpkgs'
- name: Run nix-maintainers-get-packages # Run action
uses: qjoly/[email protected]
with:
file: './test.md'
path_nixpkgs: './nixpkgs/pkgs'
maintainer: 'qjoly'
This workflow specifies that it should be triggered on push events. The job has three steps:
- Check out your repository using the
actions/checkout
action. - Check out the repository
NixOS/nixpkgs
using theactions/checkout
action. - Run the Github action
qjoly/[email protected]
to find which packages are maintained bymaintainer
and write the result intest.md
. The markdown file will be commited and pushed
To put the package list, the test.md
file must contain the following markers:
<!-- NIX-PACKAGES:START -->
Anything here will be deleted
<!-- NIX-PACKAGES:END -->
## Nix Package maintained by @qjoly
<!-- NIX-PACKAGES:START -->
- [aiac](https://github.com/gofireflyio/aiac/)
- [k9s](https://github.com/derailed/k9s)
<!-- NIX-PACKAGES:END -->
Required The markdown file where the output will be writed
Required The path to the repository NixOS/nixpkgs
Required The maintainer name
This GitHub Action does not have any outputs.
This GitHub Action is licensed under the MIT License.