From 1f1fc8a18847ef68df06e10f53043b6e2daae84f Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Mon, 20 Apr 2026 14:59:38 +0300 Subject: [PATCH] Fix removing the label in the record snapshots workflow. --- .github/workflows/record_snapshots.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/record_snapshots.yml b/.github/workflows/record_snapshots.yml index 50e3674a9..dd8e5abab 100644 --- a/.github/workflows/record_snapshots.yml +++ b/.github/workflows/record_snapshots.yml @@ -27,9 +27,10 @@ jobs: steps: - name: Remove label - run: gh pr edit "${{ github.event.pull_request.number }}" --remove-label 'record-snapshots' - env: - GH_TOKEN: ${{ github.token }} + if: github.event.label.name == 'record-snapshots' + uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 #v1.3.0 + with: + labels: record-snapshots - name: Checkout PR uses: nschloe/action-cached-lfs-checkout@385a8ecc719e50b8c71af6ab01a624b486b7c3bc # v1.2.5