Skip to content

ci: run contribution checks on pull_request_target #144

ci: run contribution checks on pull_request_target

ci: run contribution checks on pull_request_target #144

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