-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
aleksei-commmune
committed
May 17, 2023
1 parent
c582c03
commit 1f6cbf6
Showing
1 changed file
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
# Approvals counter | ||
|
||
This action counts amount of approvals of the PR | ||
This action counts the approvals of the PR | ||
|
||
## How to use | ||
## How to use | ||
|
||
You can check that PR has required amount of approvals like this | ||
|
||
```yml | ||
name: 'Approvals' | ||
description: 'Check that PR has 2 approvals' | ||
name: 'Has two or more approvals' | ||
description: 'Check that PR has two or more approvals' | ||
outputs: | ||
approved: | ||
description: 'If PR has 2 approvals' | ||
description: 'If PR has two or more approvals' | ||
value: ${{steps.approvals.outputs.approvals >= 2}} | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- uses: dayone-jp/approvals@main | ||
- uses: dayone-jp/approvals@v1 | ||
id: approvals | ||
env: | ||
GITHUB_TOKEN: "token" | ||
GITHUB_TOKEN: ${{ YOUR_TOKEN_HERE }} | ||
|
||
``` |