name: Pull Requests
on:
  pull_request_target:
    types: [opened]
  pull_request:
    types: [opened]

jobs:
  authorDetector:
    name: Detect PR's author
    runs-on: ubuntu-24.04
    steps:
      - name: Checkout Actions
        uses: actions/checkout@v4
        with:
          repository: 'cube-js/github-actions'
          path: ./actions
          ref: v5
      - name: Install Actions
        run: npm install --production --prefix ./actions
      - name: Detect author
        uses: ./actions/author-detector
        with:
          token: ${{secrets.GITHUB_TOKEN}}
          addCoreLabel: false
          communityLabel: pr:community
