diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index d3d7c97f28..a2519168f9 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -1,15 +1,16 @@ name: Labeler -on: [pull_request] +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] jobs: label: - runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: write - steps: - - uses: actions/labeler@v4 + - uses: actions/labeler@v4.0.0 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" + +