From ecefb7d63e2d3d4d6b38451466fc234988bca3b7 Mon Sep 17 00:00:00 2001 From: duhow Date: Tue, 1 Feb 2022 00:08:35 +0100 Subject: [PATCH] Trigger workflow on labels --- .github/workflows/build-packages-pr.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-packages-pr.yaml b/.github/workflows/build-packages-pr.yaml index 1022547..68ceefe 100644 --- a/.github/workflows/build-packages-pr.yaml +++ b/.github/workflows/build-packages-pr.yaml @@ -2,6 +2,7 @@ name: Build packages PR on: pull_request: + types: [ labeled ] paths: - 'packages/**' - 'packages.sh' @@ -14,13 +15,19 @@ concurrency: jobs: lx01: name: LX01 - if: ${{ github.repository == 'duhow/xiaoai-patch' }} + if: contains(github.event.pull_request.labels.*.name, 'LX01') uses: duhow/xiaoai-patch/.github/workflows/build-packages.yaml@master with: model: LX01 lx06: name: LX06 - if: ${{ github.repository == 'duhow/xiaoai-patch' }} + if: contains(github.event.pull_request.labels.*.name, 'LX06') uses: duhow/xiaoai-patch/.github/workflows/build-packages.yaml@master with: model: LX06 + s12: + name: S12 + if: contains(github.event.pull_request.labels.*.name, 'S12') + uses: duhow/xiaoai-patch/.github/workflows/build-packages.yaml@master + with: + model: S12