Skip to content

Commit

Permalink
Only run napari-hub preview on adding hub-preview label (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
jni authored Mar 23, 2022
1 parent 1f49712 commit 53aac54
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/plugin_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ name: napari hub Preview Page # we use this name to find your preview page artif

on:
pull_request:
branches:
- '**'
types: [labeled]
workflow_dispatch:

jobs:
preview-page:
name: Preview Page Deploy

if: ${{ github.event.label.name == 'hub-preview' && github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 53aac54

Please sign in to comment.