fixing labeler workflow
@@ -11,12 +11,14 @@ jobs:
triage:
runs-on: ubuntu-latest
steps:
- - uses: AlexanderWert/issue-labeler@v2.3
+ - name: Add agent-java label
+ uses: AlexanderWert/issue-labeler@v2.3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler-config.yml
enable-versioned-regex: 0
- - uses: elastic/get-user-teams-membership@v1.0.4
+ - name: Check team membership for user
+ uses: elastic/get-user-teams-membership@v1.0.4
id: checkUserMember
with:
username: ${{ github.actor }}
@@ -25,7 +27,12 @@ jobs:
apmmachine
dependabot
GITHUB_TOKEN: ${{ secrets.APM_TECH_USER_TOKEN }}
- - if: ${{ steps.checkUserMember.outputs.isTeamMember != 'true' }} && ${{ steps.checkUserMember.outputs.isExcluded != 'true' }}
+ - name: Show team membership
+ run: |
+ echo "::debug::isTeamMember: ${{ steps.checkUserMember.outputs.isTeamMember }}"
+ echo "::debug::isExcluded: ${{ steps.checkUserMember.outputs.isExcluded }}"
+ - name: Add community and triage lables
+ if: steps.checkUserMember.outputs.isTeamMember != 'true' && steps.checkUserMember.outputs.isExcluded != 'true'
uses: AlexanderWert/issue-labeler@v2.3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
@@ -33,7 +40,7 @@ jobs:
enable-versioned-regex: 0
- name: Assign new internal pull requests to project
uses: elastic/assign-one-project-github-action@1.2.2
- if: (${{ steps.checkUserMember.outputs.isTeamMember == 'true' }} || ${{ steps.checkUserMember.outputs.isExcluded == 'true' }}) && github.event.action == 'opened' && github.event.pull_request
+ if: (steps.checkUserMember.outputs.isTeamMember == 'true' || steps.checkUserMember.outputs.isExcluded == 'true') && github.event.pull_request
with:
project: 'https://github.com/orgs/elastic/projects/454'
project_id: '5882982'
