ci: rework and move build-on-comment action

Run this only when a PR is created, so either author or anyone who can
edit the PR message (all maintainers) can trigger such build.

Instead of maintaining it in the main repository, move it to the
external repository to bloat this repository less with further CI
commits.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 8cff0d8ca0d42aec4cb47313cd0c3dd99e06bbec)
Link: https://github.com/openwrt/openwrt/pull/24319
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit d91a9ac1efc06b58c92b0e20951288a3de214416)
This commit is contained in:
Paul Spooren 2026-01-15 09:19:16 +07:00 committed by ahmed sassi
parent a7a423902c
commit 4c01dd2726

12
.github/workflows/build-pr-profile.yml vendored Normal file
View File

@ -0,0 +1,12 @@
name: Build PR Profile
on:
pull_request:
types: [opened, edited, synchronize]
permissions:
pull-requests: write
jobs:
build-pr-profile:
uses: openwrt/actions-shared-workflows/.github/workflows/build-pr-profile.yml@main