Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
djdefi authored Oct 14, 2022
1 parent 9e8b8d0 commit 7184442
Showing 1 changed file with 41 additions and 8 deletions.
49 changes: 41 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# team-readme-generator

Action to automatically keep a table of team members up to date in a repository README
Action to automatically keep a table of team members up to date in a repository README.

## Example:

Expand All @@ -19,12 +19,45 @@ We are small but mighty!

## Usage:

1. Configure a workflow such as the example

```yaml
name: "Team README table generator"

on:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
org:
description: 'The organization to run the workflow against'
required: true
default: 'my-org'
team:
description: 'The team to run the workflow against'
required: true
default: 'my-team'

jobs:
run_team_readme_job:
runs-on: ubuntu-latest
name: Run team readme generator
steps:
- uses: actions/checkout@v3
- id: Generate
uses: djdefi/team-readme-generator@main
with:
org: ${{ github.event.inputs.org }}
team: ${{ github.event.inputs.team }}
my-pat: ${{ secrets.MY_PAT }}

```
1. Setup the README.md by adding the following two tags wherever you want the table to appear:

```markdown
<!--auto-team-table-->
<!--/auto-team-table-->
```

2. Configure the Action workflow with the desired team name.
3. Review and merge the resulting pull requests.
```markdown
<!--auto-team-table-->
<!--/auto-team-table-->
```
1. Configure `MY_PAT` as an Actions secret. The token needs to have `org:read` and `repo:write` scopes to get team info and create pull requests.
1. Run the the Action workflow with the desired team name.
1. Review and merge the resulting pull requests.

0 comments on commit 7184442

Please sign in to comment.