Skip to content

Commit

Permalink
ci: create previews for pr with label
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdehaven committed Oct 2, 2023
1 parent 552eebb commit 14aa437
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Tests

on:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
branches:
- main
- alpha
Expand Down Expand Up @@ -61,7 +66,7 @@ jobs:

- name: Publish Package Preview
id: package-preview
if: github.event_name == 'pull_request' && github.actor != 'renovate[bot]'
if: github.event_name == 'pull_request' && (github.actor != 'renovate[bot]' || contains(github.event.pull_request.labels.*.name, 'create preview package'))
run: |
git config user.email "[email protected]"
git config user.name "Kong UI Bot"
Expand Down

0 comments on commit 14aa437

Please sign in to comment.