Skip to content

CI: test build

CI: test build #54

Workflow file for this run

name: Test Formalities
on:
pull_request_target:
permissions:
contents: read
pull-requests: write
jobs:
formalities:
name: Test Formalities
uses: openwrt/actions-shared-workflows/.github/workflows/formal.yml@main
with:
post_comment: true
label_formality_status:
name: Add Formality Status
runs-on: ubuntu-slim
needs: formalities
if: always()
steps:
- name: Trigger build
if: needs.formalities.result == 'success'
uses: actions/github-script@v8
with:
github-token: ${{ secrets.DEFAULT_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'multi-arch-test-build.yml',
ref: 'main', // or your default branch
inputs: {
pr_number: context.issue.number.toString(),
},
});
- name: Add 'not following guidelines' label
if: needs.formalities.result == 'failure'
uses: buildsville/[email protected]
with:
labels: "not following guidelines"
type: add
- name: Remove 'not following guidelines' label
if: needs.formalities.result == 'success'
uses: buildsville/[email protected]
with:
labels: "not following guidelines"
type: remove