diff --git a/.github/workflows/auto-label.yaml b/.github/workflows/auto-label.yaml new file mode 100644 index 0000000..31ada09 --- /dev/null +++ b/.github/workflows/auto-label.yaml @@ -0,0 +1,17 @@ +name: auto-label +concurrency: + group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }} + cancel-in-progress: true +on: # yamllint disable-line rule:truthy + pull_request_target + +jobs: + pr: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5 + with: + configuration-path: .github/labeler.yaml diff --git a/.github/workflows/bot.yaml b/.github/workflows/bot.yaml index 72351f8..4c33cfa 100644 --- a/.github/workflows/bot.yaml +++ b/.github/workflows/bot.yaml @@ -19,10 +19,3 @@ jobs: env: PR_URL: ${{ github.event.pull_request.html_url }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - auto-label: - runs-on: ubuntu-latest - steps: - - uses: actions/labeler@v5 - with: - configuration-path: .github/labeler.yaml