name: Labeler on: [pull_request_target] permissions: contents: read pull-requests: write jobs: label: runs-on: ubuntu-latest steps: # Requires .github/labeler.yml in this repo, e.g.: # infra: [ 'cdk/**', 'template.yaml', 'oidc-deploy-roles.yaml' ] # lambda: [ 'lambdas/**', 'src/**', 'functions/**' ] # ci: [ '.github/workflows/**' ] # docs: [ '**/*.md' ] - uses: actions/labeler@v5 with: repo-token: ${{ secrets.GITHUB_TOKEN }} sync-labels: true