diff --git a/.github/workflows/feature_greetings.yml b/.github/workflows/feature_greetings.yml index ae669fa1..ada96504 100644 --- a/.github/workflows/feature_greetings.yml +++ b/.github/workflows/feature_greetings.yml @@ -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 @@ -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: | @@ -65,4 +62,4 @@ jobs: repo: context.repo.repo, issue_number: issueNumber, body: message - }); \ No newline at end of file + });