File tree Expand file tree Collapse file tree 1 file changed +14
-17
lines changed Expand file tree Collapse file tree 1 file changed +14
-17
lines changed Original file line number Diff line number Diff line change @@ -6,18 +6,19 @@ Labels are taken from https://github.com/kubernetes/kubernetes/labels?q=size
66
77## Usage
88
9- Add this to your ` .github/main.workflow ` file:
9+ Create a ` .github/workflows/size-label.yml ` file:
1010
1111```
12- workflow "on pull request changes, assign size labels" {
13- on = "pull_request"
14- resolves = ["assign size labels"]
15- }
16-
17- action "assign size labels" {
18- uses = "pascalgn/size-label-action@c2d2180e948c522584a969d2657fc4ab1d01d1aa"
19- secrets = ["GITHUB_TOKEN"]
20- }
12+ name: size-label
13+ on: pull_request
14+ jobs:
15+ size-label:
16+ runs-on: ubuntu-latest
17+ steps:
18+ - name: size-label
19+ uses: "pascalgn/size-label-action@c2d2180e948c522584a969d2657fc4ab1d01d1aa"
20+ env:
21+ GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
2122```
2223
2324## Configuration
@@ -32,13 +33,9 @@ The following environment variables are supported:
3233You can configure the environment variables in the workflow file like this:
3334
3435```
35- action "assign size labels" {
36- uses = ...
37- secrets = ["GITHUB_TOKEN"]
38- env = {
39- IGNORED = ".*\n!.gitignore\nyarn.lock\ngenerated/**"
40- }
41- }
36+ env:
37+ GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
38+ IGNORED = ".*\n!.gitignore\nyarn.lock\ngenerated/**"
4239```
4340
4441## License
You can’t perform that action at this time.
0 commit comments