From 8958214350e50cbd891c803b1f73613764d201cd Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 13 May 2024 18:55:31 +0300 Subject: [PATCH] chore: fix docs PR label removing team label (#7308) * chore: fix docs PR labeler to only run with PR is opened * add team labeler action * move docs labeler to team labeler --- .github/workflows/docs-pr-label.yml | 13 ------------- .github/workflows/team-labeler.yml | 2 ++ 2 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 .github/workflows/docs-pr-label.yml diff --git a/.github/workflows/docs-pr-label.yml b/.github/workflows/docs-pr-label.yml deleted file mode 100644 index 770f2c9bde..0000000000 --- a/.github/workflows/docs-pr-label.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: "Add Docs PR Label" -on: - pull_request: - -jobs: - labeler: - permissions: - contents: read - pull-requests: write - runs-on: ubuntu-latest - steps: - - id: label-the-PR - uses: actions/labeler@v5 \ No newline at end of file diff --git a/.github/workflows/team-labeler.yml b/.github/workflows/team-labeler.yml index 707e152ff5..c597290ac5 100644 --- a/.github/workflows/team-labeler.yml +++ b/.github/workflows/team-labeler.yml @@ -9,6 +9,8 @@ jobs: team-labeler: runs-on: ubuntu-latest steps: + - id: label-the-PR + uses: actions/labeler@v5 - uses: JulienKode/team-labeler-action@v1.1.0 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file