Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chadsr/action-user-repos-json

A Github Action to output a user's repositories as a JSON file.
https://github.com/chadsr/action-user-repos-json

actions github-actions

Last synced: 3 months ago
JSON representation

A Github Action to output a user's repositories as a JSON file.

Awesome Lists containing this project

README

        

# User Repositories to JSON

[![Test](https://github.com/chadsr/action-user-repos-json/actions/workflows/test.yml/badge.svg)](https://github.com/chadsr/action-user-repos-json/actions/workflows/test.yml)

A Github action to output repositories owned by a user, as a JSON file.

Optional configuration criteria are provided to filter the results.

## Usage

```yaml
name: User Repos to JSON
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chadsr/action-user-repos-json@main
- id: repos
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
username: 'chadsr'
minimumStargazers: 1
- name: Do something with the JSON file
run: cat "${{ steps.repos.outputs.json_path }}"
```