diff --git a/.github/workflows/pr-assign-team-label.yml b/.github/workflows/pr-assign-team-label.yml index 3004285940b5d7..4a41d2e5844083 100644 --- a/.github/workflows/pr-assign-team-label.yml +++ b/.github/workflows/pr-assign-team-label.yml @@ -1,9 +1,9 @@ name: Assign PR team labels on: workflow_call: - pull_request: - branches: - - main + pull_request_target: + types: + - opened jobs: team-labels: @@ -14,6 +14,7 @@ jobs: steps: - uses: actions/checkout@v2 - uses: equitybee/team-label-action@main + if: ${{ secrets.GH_ACCESS_TOKEN != '' }} with: repo-token: ${{ secrets.GH_ACCESS_TOKEN }} organization-name: calcom