From 1991600ff30c071f6aabb0df891a320afcdfdb24 Mon Sep 17 00:00:00 2001 From: Aleksandr Soloshenko Date: Wed, 10 Dec 2025 08:55:21 +0700 Subject: [PATCH] [actions] fix labels removing --- .github/workflows/pr-labels.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-labels.yml b/.github/workflows/pr-labels.yml index 04e1c76..6ccfbf6 100644 --- a/.github/workflows/pr-labels.yml +++ b/.github/workflows/pr-labels.yml @@ -10,7 +10,14 @@ jobs: permissions: pull-requests: write # Grant permission to modify labels steps: + # step 1: checkout repository code + - name: Checkout code into workspace directory + uses: actions/checkout@v4 + + # step 2: remove specific labels - name: Remove specific labels - run: gh pr edit ${{ github.event.pull_request.number }} --remove-label "ready,deployed" + run: | + gh pr edit ${{ github.event.pull_request.number }} --remove-label "ready" || true + gh pr edit ${{ github.event.pull_request.number }} --remove-label "deployed" || true env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}