Skip to content

Commit

Permalink
Update feature_greetings.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmechinmoy authored Aug 30, 2024
1 parent 4b04572 commit 476bc79
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/feature_greetings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,9 @@ jobs:
fi
- name: Check if the issue creator is the repo owner
if: env.skip_label_check == 'false'
id: check_owner
run: |
if [ "$skip_label_check" = "true" ]; then
echo "Skipping owner check due to label."
exit 0
fi
ISSUE_AUTHOR=$(jq -r '.issue.user.login' "$GITHUB_EVENT_PATH")
REPO_OWNER=$(jq -r '.repository.owner.login' "$GITHUB_EVENT_PATH")
if [ "$ISSUE_AUTHOR" = "$REPO_OWNER" ]; then
Expand All @@ -40,7 +37,7 @@ jobs:
fi
- name: Send Greeting Message
if: env.skip != 'true'
if: env.skip_label_check == 'false' && env.skip != 'true'
uses: actions/github-script@v6
with:
script: |
Expand All @@ -65,4 +62,4 @@ jobs:
repo: context.repo.repo,
issue_number: issueNumber,
body: message
});
});

0 comments on commit 476bc79

Please sign in to comment.