From c487547214342ee96a2cda76ac3e5b57091343b7 Mon Sep 17 00:00:00 2001 From: Abhishek Tiwari <97469132+AbhishekTiwari23@users.noreply.github.com> Date: Sun, 4 Jun 2023 02:01:39 +0530 Subject: [PATCH] new code/ error check --- .github/workflows/greetings.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index 7cf2177..826892b 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -16,7 +16,7 @@ jobs: id: check_first_interaction run: | echo "is_first_interaction=true" >> $GITHUB_ENV - if [ -f ${{ github.event.issue.pull_request.url }} ]; then + if [ "${{ github.event_name }}" == 'pull_request_target' ]; then echo "is_first_interaction=false" >> $GITHUB_ENV fi