diff --git a/.github/workflows/pull-request-commit.yml b/.github/workflows/pull-request-commit.yml index a726ca1be7..cb30fc3924 100644 --- a/.github/workflows/pull-request-commit.yml +++ b/.github/workflows/pull-request-commit.yml @@ -162,3 +162,17 @@ jobs: with: header: fingerprint-diff delete: true + + - name: 🏷️ Label as fingerprint changed + if: ${{ steps.fingerprint.outputs.includes-changes }} + env: + GH_TOKEN: ${{ github.token }} + PR_NUMBER: ${{ github.event.pull_request.number }} + run: gh pr edit "$PR_NUMBER" --add-label "bot: fingerprint changed" || true + + - name: 🏷️ Remove fingerprint changed label + if: ${{ !steps.fingerprint.outputs.includes-changes }} + env: + GH_TOKEN: ${{ github.token }} + PR_NUMBER: ${{ github.event.pull_request.number }} + run: gh pr edit "$PR_NUMBER" --remove-label "bot: fingerprint changed" || true