-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the reusable workflow defined in bonita-documentation-site to configure and maintain them more easily. Covers bonitasoft/bonita-documentation-site#686 Covers bonitasoft/bonita-documentation-site#700
- Loading branch information
1 parent
df9cea2
commit 1a183ad
Showing
4 changed files
with
52 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Build PR preview | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'modules/**' | ||
- 'antora.yml' | ||
- '.github/workflows/pr-build-preview.yml' | ||
|
||
jobs: | ||
build: | ||
uses: bonitasoft/bonita-documentation-site/.github/workflows/_reusable_surge-build-preview.yml@master | ||
secrets: inherit | ||
with: | ||
component-name: bonita | ||
fail-on-warning: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Comments PR with changes list | ||
|
||
on: | ||
pull_request_target: | ||
paths: | ||
- '.github/workflows/pr-comments-list-changes.yml' | ||
- 'modules/**' | ||
|
||
jobs: | ||
site: | ||
permissions: | ||
pull-requests: write # write PR comments | ||
uses: bonitasoft/bonita-documentation-site/.github/workflows/_reusable_pr-comment-list-changes.yml@master | ||
secrets: inherit | ||
with: | ||
component-name: bonita |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Deploy PR preview | ||
|
||
|
||
on: | ||
workflow_run: | ||
workflows: | ||
- "Build PR preview" | ||
types: | ||
- completed | ||
|
||
jobs: | ||
deploy: | ||
permissions: | ||
pull-requests: write | ||
uses: bonitasoft/bonita-documentation-site/.github/workflows/_reusable_surge-deploy-preview.yml@master | ||
secrets: inherit |
7 changes: 4 additions & 3 deletions
7
.github/workflows/build-pr-preview.yml → .github/workflows/pr-validate-references.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
name: Build PR preview | ||
name: Vaidate xref | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'modules/**' | ||
- 'antora.yml' | ||
- '.github/workflows/build-pr-preview.yml' | ||
- '.github/workflows/pr-validate-references.yml' | ||
|
||
jobs: | ||
validate_xref: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Validate xref | ||
uses: bonitasoft/bonita-documentation-site/.github/actions/build-pr-site/@master | ||
uses: bonitasoft/bonita-documentation-site/.github/workflows/_reusable_pr-validate-references.yml/@master | ||
with: | ||
component-name: bonita | ||
fail-on-warning: true |