mirror of
https://github.com/bitnami/containers.git
synced 2026-02-09 18:57:39 +08:00
🔄 synced file(s) with bitnami/support (#67055)
🔄 synced local '.github/workflows/' with remote 'workflows/' Signed-off-by: bitnami-bot <bitnami-bot@vmware.com>
This commit is contained in:
6
.github/workflows/pr-review-hack.yml
vendored
6
.github/workflows/pr-review-hack.yml
vendored
@@ -32,8 +32,8 @@ jobs:
|
||||
download_url="$(gh api "${{ github.event.workflow_run.artifacts_url }}" | jq -cr '.artifacts[] | select(.name == "pull_request_info.json") | .archive_download_url')"
|
||||
curl -sSL -o pull_request_info.zip -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: Bearer $GITHUB_TOKEN" $download_url
|
||||
unzip pull_request_info.zip
|
||||
pull_request_number=$(jq '.issue.number' pull_request_info.json)
|
||||
issue_review_state="$(jq '.review.state' pull_request_info.json)"
|
||||
pull_request_number="$(jq -cr '.issue.number' pull_request_info.json)"
|
||||
issue_review_state="$(jq -cr '.review.state' pull_request_info.json)"
|
||||
pull_request="$(gh api "repos/${GITHUB_REPOSITORY}/pulls/${pull_request_number}")"
|
||||
author="$(echo $pull_request | jq -cr '.user.login')"
|
||||
author_association="$(echo $pull_request | jq -cr '.author_association')"
|
||||
@@ -44,7 +44,7 @@ jobs:
|
||||
echo "actor=${actor}" >> $GITHUB_OUTPUT
|
||||
echo "author=${author}" >> $GITHUB_OUTPUT
|
||||
echo "author_association=${author_association}" >> $GITHUB_OUTPUT
|
||||
echo "review_state=${issue_review_state}"
|
||||
echo "review_state=${issue_review_state}" >> $GITHUB_OUTPUT
|
||||
echo "labels=${labels}" >> $GITHUB_OUTPUT
|
||||
echo "resource_url=${resource_url}" >> $GITHUB_OUTPUT
|
||||
call-pr-review-comment:
|
||||
|
||||
Reference in New Issue
Block a user