mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
ci: label formality failures
Add or remove 'not following guidelines' label based on formality check status. Signed-off-by: George Sapkin <george@sapk.in>
This commit is contained in:
committed by
Josef Schlehofer
parent
a9ae28811a
commit
2c558a851f
25
.github/workflows/multi-arch-test-build.yml
vendored
25
.github/workflows/multi-arch-test-build.yml
vendored
@@ -8,6 +8,31 @@ jobs:
|
|||||||
name: Test Formalities
|
name: Test Formalities
|
||||||
uses: openwrt/actions-shared-workflows/.github/workflows/formal.yml@main
|
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:
|
build:
|
||||||
name: Feeds Package Test Build
|
name: Feeds Package Test Build
|
||||||
needs: formalities
|
needs: formalities
|
||||||
|
|||||||
Reference in New Issue
Block a user