Skip to content

Preview PR improvements #134

Preview PR improvements

Preview PR improvements #134

name: "Preview on auspice.us"
on:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
- closed
jobs:
run:
# Run if PR has the label and is updated or is newly labeled with the label
if: |
(github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'preview on auspice.us')) ||
(github.event.action == 'labeled' && github.event.label.name == 'preview on auspice.us')
uses: ./.github/workflows/preview_on_downstream_repo.yaml
secrets: inherit
with:
repository: nextstrain/auspice.us
cleanup: github.event.action == 'closed'

Check failure on line 21 in .github/workflows/preview_on_auspice_us.yaml

View workflow run for this annotation

GitHub Actions / Preview on auspice.us

Invalid workflow file

The workflow is not valid. .github/workflows/preview_on_auspice_us.yaml (Line: 21, Col: 16): Unexpected value 'github.event.action == 'closed''