From b87cdb9d55487b2b06485b4f04a10065b21a90e2 Mon Sep 17 00:00:00 2001 From: danimtb Date: Wed, 4 Oct 2023 17:38:42 +0200 Subject: [PATCH] kk --- .github/actions/prs_user_limit/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/prs_user_limit/action.yml b/.github/actions/prs_user_limit/action.yml index 3120ed734e6f4..ddf7288b91cc9 100644 --- a/.github/actions/prs_user_limit/action.yml +++ b/.github/actions/prs_user_limit/action.yml @@ -59,8 +59,8 @@ runs: user_open_prs = [p for p in open_prs if p.user.login == username] # Check the number of open PRs and the specified limit - limit = int(os.environ["limit"]) + limit = int(${{ github.event.inputs.limit }}) if len(user_open_prs) >= limit: # Post a comment on the current pull request if the limit is reached - comment_text = "${{ github.event.inputs.limit }}" + comment_text = "${{ github.event.inputs.comment }}" pr.create_issue_comment(comment_text)