Skip to content

Commit

Permalink
ci: run when main or PR with label
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlj95 committed Jan 29, 2024
1 parent 42ec234 commit 4f337c4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/reusable-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ permissions:
deployments: write

jobs:
echo:
runs-on: ubuntu-latest
steps:
- name: 'Echo context'
run: 'echo ${{ toJSON(github) }}'
docs:
defaults:
run:
working-directory: '${{ env.DOCS_DIR }}'
runs-on: ubuntu-latest
if: github.ref_name == 'main' || (github.event == 'pull_request' && github.event.label.name == 'preview docs')
if: |
github.ref_name == 'main' ||
(
github.event_name == 'pull_request' &&
contains(github.event.pull_request.labels.*.name, 'preview docs')
)
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
Expand Down

0 comments on commit 4f337c4

Please sign in to comment.