Skip to content

Commit

Permalink
Update README.md (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 authored Oct 25, 2020
1 parent 3de5b9a commit fa6f4f4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ jobs:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
```
## Create the needed labels
Export both `GITHUB_TOKEN` and `REPO` (e.g. `pascalgn/size-label-action`) and run the script bellow:

```bash
for size in XL XXL XS S M L; do
curl -sf -H "Authorization: Bearer $GITHUB_TOKEN" "https://api.github.com/repos/kubernetes/kubernetes/labels/size/$size" |
jq '. | { "name": .name, "color": .color, "description": .description }' |
curl -sfXPOST -d @- -H "Authorization: Bearer $GITHUB_TOKEN" https://api.github.com/repos/$REPO/labels
done
```

## Configuration

The following environment variables are supported:
Expand Down

0 comments on commit fa6f4f4

Please sign in to comment.