Skip to content

Commit

Permalink
Update action-size workflow (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
micnncim authored May 3, 2020
1 parent 7abc9bc commit 3abae93
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 13 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ jobs:
- uses: actions-ecosystem/action-remove-labels@v1
with:
github_token: ${{ secrets.github_token }}
labels: |
${{ steps.size.outputs.stale_labels }}
labels: ${{ steps.size.outputs.stale_labels }}
- uses: actions-ecosystem/action-add-labels@v1
with:
github_token: ${{ secrets.github_token }}
labels: |
${{ steps.size.outputs.new_label }}
labels: ${{ steps.size.outputs.new_label }}
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
[![actions-workflow-test][actions-workflow-test-badge]][actions-workflow-test]
[![release][release-badge]][release]

![screenshot](./docs/assets/screenshot.png)
![screenshot](./docs/assets/screenshot-add-label.png)
![screenshot](./docs/assets/screenshot-remove-and-add-label.png)

Determine a label to be added based on the number of lines changed in a pull request.

Expand All @@ -22,7 +23,7 @@ The description about the kinds of labels are below.

## Inputs

The inputs for labels are optional. The default values are below.
All the inputs are optional.

### Size labels

Expand Down Expand Up @@ -78,13 +79,11 @@ jobs:
- uses: actions-ecosystem/action-remove-labels@v1
with:
github_token: ${{ secrets.github_token }}
labels: |
${{ steps.size.outputs.stale_labels }}
labels: ${{ steps.size.outputs.stale_labels }}
- uses: actions-ecosystem/action-add-labels@v1
with:
github_token: ${{ secrets.github_token }}
labels: |
${{ steps.size.outputs.new_label }}
labels: ${{ steps.size.outputs.new_label }}
```
## License
Expand Down
3 changes: 0 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Actions Ecosystem Size
description: Add label based on the number of lines changed in a pull request.
author: The Actions Ecosystem Authors
inputs:
github_token:
description: A GitHub token.
required: true
size_xs_label:
description: The name for size XS label.
required: false
Expand Down
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3abae93

Please sign in to comment.