Skip to content

Commit

Permalink
Trigger workflow on labels
Browse files Browse the repository at this point in the history
  • Loading branch information
duhow committed Jan 11, 2024
1 parent e8a8c55 commit ecefb7d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build-packages-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Build packages PR

on:
pull_request:
types: [ labeled ]
paths:
- 'packages/**'
- 'packages.sh'
Expand All @@ -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

0 comments on commit ecefb7d

Please sign in to comment.