Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use reusable workflows #60

Merged
merged 2 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .github/workflows/build-pr-preview.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .github/workflows/pr-build-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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: test-toolkit
17 changes: 17 additions & 0 deletions .github/workflows/pr-comments-changes-list.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Comments PR with changes list

on:
# use pull_request event to test update done in bonita-documentation-site/.github/workflows/_reusable_pr-comment-list-changes.yml
pull_request_target:
paths:
- '.github/workflows/pr-comments-changes-list.yml'
- 'modules/**'

jobs:
commentsPRChanges:
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: test-toolkit
16 changes: 16 additions & 0 deletions .github/workflows/pr-deploy-preview.yml
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
16 changes: 16 additions & 0 deletions .github/workflows/pr-validate-references.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Validate xref

on:
pull_request:
paths:
- 'modules/**'
- 'antora.yml'
- '.github/workflows/pr-validate-references.yml'

jobs:
validate_xref:
uses: bonitasoft/bonita-documentation-site/.github/workflows/_reusable_pr-validate-references.yml@master
secrets: inherit
with:
component-name: test-toolkit
fail-on-warning: true
22 changes: 0 additions & 22 deletions .github/workflows/publish-pr-preview.yml

This file was deleted.