ci: run contribution checks on pull_request_target
#144
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build PR preview | |
on: | |
pull_request: | |
# To manage 'surge-preview' action teardown, add default event types + closed event type | |
types: [opened, synchronize, reopened, closed] | |
paths: | |
- 'modules/**' | |
- 'antora.yml' | |
- '.github/workflows/build-pr-preview.yml' | |
jobs: | |
build_preview: | |
runs-on: ubuntu-22.04 | |
permissions: | |
pull-requests: write # surge-preview write PR comments | |
steps: | |
- name: Build and publish PR preview | |
uses: bonitasoft/bonita-documentation-site/.github/actions/build-and-publish-pr-preview@master | |
with: | |
surge-token: ${{ secrets.SURGE_TOKEN_DOC }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
component-name: labs | |
fail-on-warning: true |