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'
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+ labels: "not following guidelines"
+ type: add
+
+ - name: Remove 'not following guidelines' label
+ if: needs.formalities.result == 'success'
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+ labels: "not following guidelines"
+ type: remove
+
build:
name: Feeds Package Test Build
needs: formalities