From 2c558a851ff61f5c07dc7134878e7d6a2487f16f Mon Sep 17 00:00:00 2001 From: George Sapkin Date: Sat, 8 Nov 2025 01:28:59 +0200 Subject: [PATCH] ci: label formality failures Add or remove 'not following guidelines' label based on formality check status. Signed-off-by: George Sapkin --- .github/workflows/multi-arch-test-build.yml | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/multi-arch-test-build.yml b/.github/workflows/multi-arch-test-build.yml index 2a78a114e6..88554ade54 100644 --- a/.github/workflows/multi-arch-test-build.yml +++ b/.github/workflows/multi-arch-test-build.yml @@ -8,6 +8,31 @@ jobs: name: Test Formalities uses: openwrt/actions-shared-workflows/.github/workflows/formal.yml@main + label_formality_status: + name: Add formality check labels + runs-on: ubuntu-slim + needs: formalities + if: always() + permissions: + pull-requests: write + + steps: + - name: Add 'not following guidelines' label + if: needs.formalities.result == 'failure' + uses: buildsville/add-remove-label@v2.0.1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + labels: "not following guidelines" + type: add + + - name: Remove 'not following guidelines' label + if: needs.formalities.result == 'success' + uses: buildsville/add-remove-label@v2.0.1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + labels: "not following guidelines" + type: remove + build: name: Feeds Package Test Build needs: formalities -- 2.30.2