From 289fdf591c80de8c187e456fef2d3b06dcf0975a Mon Sep 17 00:00:00 2001 From: Mathieu Scheltienne Date: Tue, 10 Dec 2024 11:14:29 +0100 Subject: [PATCH] keep separate auto-label workflow --- .github/workflows/auto-label.yaml | 17 +++++++++++++++++ .github/workflows/bot.yaml | 7 ------- 2 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/auto-label.yaml diff --git a/.github/workflows/auto-label.yaml b/.github/workflows/auto-label.yaml new file mode 100644 index 00000000..31ada092 --- /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 72351f83..4c33cfa5 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