diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index a8a1bd725b..c201024af2 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -5,18 +5,23 @@ # file with configuration. For more information, see: # https://github.com/actions/labeler -name: Labeler -on: [pull_request] +name: Automatically add relevant labels to Pull Requests +on: +- pull_request_target + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: label: - runs-on: ubuntu-latest + #if: github.event.pull_request.head.repo.full_name == github.repository + #if: ${{ github.repository_owner == 'openfoodfacts' }} permissions: contents: read pull-requests: write - steps: - - uses: actions/labeler@v4 + - uses: actions/labeler@v5 with: repo-token: "${{ secrets.GITHUB_TOKEN }}"