This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/2.x by this push:
new f56f9d00e5 Fix labeler action
f56f9d00e5 is described below
commit f56f9d00e5b233d7ef865cebd249356a36177f1f
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Thu Jun 13 10:26:04 2024 +0200
Fix labeler action
---
.github/workflows/labeler.yaml | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml
index 4f31abd256..c13211e980 100644
--- a/.github/workflows/labeler.yaml
+++ b/.github/workflows/labeler.yaml
@@ -28,7 +28,7 @@ env:
}}
comment_user_type: >-
${{
- github.event_type == 'issue_comment' &&
+ github.event_name == 'issue_comment' &&
(
contains(fromJSON('["COLLABORATOR","MEMBER","OWNER"]'),
github.event.comment.author_association) && 'maintainer' || 'user'
) || null
@@ -47,15 +47,17 @@ jobs:
- name: Print user type
env:
+ EVENT_NAME: ${{ github.event_name }}
ISSUE_USER_TYPE: ${{ env.issue_user_type }}
COMMENT_USER_TYPE: ${{ env.comment_user_type }}
run: |
- echo "Issue created by: " $ISSUE_USER_TYPE
+ echo "Event name:" $EVENT_NAME
+ echo "Issue created by:" $ISSUE_USER_TYPE
echo "Comment created by:" $COMMENT_USER_TYPE
# The `waiting-for-maintainer` label needs to match with the one in
`close-stale.yaml`!
- name: Add `waiting-for-maintainer` label
- if: github.event_type == 'issues' && env.issue_user_type == 'user' ||
env.comment_user_type == 'user'
+ if: github.event_name == 'issues' && env.issue_user_type == 'user' ||
env.comment_user_type == 'user'
env:
ISSUE: ${{ github.event.issue.html_url }}
GH_TOKEN: ${{ github.token }}