diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler-auto.yml similarity index 88% rename from .github/workflows/labeler.yml rename to .github/workflows/labeler-auto.yml index 64e1f3825a6..2f88b117f98 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler-auto.yml @@ -1,4 +1,4 @@ -name: "Pull Request Labeler" +name: "Pull Request Labeler (auto)" on: - pull_request_target diff --git a/.github/workflows/labeler-manual.yml b/.github/workflows/labeler-manual.yml new file mode 100644 index 00000000000..d7693ce60e9 --- /dev/null +++ b/.github/workflows/labeler-manual.yml @@ -0,0 +1,22 @@ +name: "Pull Request Labeler (manual)" +on: + - workflow_dispatch: + inputs: + oldPRs: + description: 'PRs list to process' + required: true + default: '1, 2, 3' + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - id: label-the-PR + uses: actions/labeler@v5 + with: + configuration-path: '.github/labeler.yml' + pr-number: | + ${{ github.event.inputs.oldPRs }} \ No newline at end of file