Skip to content

Commit

Permalink
Fix pr number
Browse files Browse the repository at this point in the history
Signed-off-by: kerthcet <[email protected]>
  • Loading branch information
kerthcet committed Jun 23, 2024
1 parent 2460bfa commit c008d85
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/kube-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@ jobs:
id: handle_comments
run: |
COMMENT_BODY=$(jq -r '.comment.body' $GITHUB_EVENT_PATH)
PR_NUMBER=$(jq -r '.pull_request.number' $GITHUB_EVENT_PATH)
ISSUE_NUMBER=$(jq -r '.issue.number' $GITHUB_EVENT_PATH)
PR_NUMBER=$(jq -r '.issue.number' $GITHUB_EVENT_PATH)
COMMENT_USER=$(jq -r '.comment.user.login' $GITHUB_EVENT_PATH)
echo $GITHUB_EVENT_PATH
echo $COMMENT_BODY
echo $PR_NUMBER
echo $ISSUE_NUMBER
echo $COMMENT_USER
OWNER_FILE=$(cat OWNERS)
Expand Down Expand Up @@ -64,7 +62,7 @@ jobs:
- name: Merge PR if lgtmed and approved
run: |
PR_NUMBER=$(jq -r '.pull_request.number' $GITHUB_EVENT_PATH)
PR_NUMBER=$(jq -r '.issue.number' $GITHUB_EVENT_PATH)
LABELS=$(gh pr view $PR_NUMBER --json labels --jq '.labels[].name')
if [[ "$LABELS" == *"lgtm"* && "$LABELS" == *"approved"* ]]; then
Expand Down

0 comments on commit c008d85

Please sign in to comment.