From 1f6cbf6e044c8ecfae66dcbd4a563982f35a01e0 Mon Sep 17 00:00:00 2001 From: aleksei-commmune Date: Wed, 17 May 2023 09:32:28 +0900 Subject: [PATCH] update readme --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index cb99310..d5a52fb 100644 --- a/README.md +++ b/README.md @@ -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 }} + ```