Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksei-commmune committed May 17, 2023
1 parent c582c03 commit 1f6cbf6
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
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 }}

```

0 comments on commit 1f6cbf6

Please sign in to comment.