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: make workflows better work for PR created from forked repo #54

Merged
merged 1 commit into from
Apr 18, 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
12 changes: 2 additions & 10 deletions .github/workflows/build-pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,15 @@ name: Build PR preview
on:
pull_request:
paths:
- 'modules/ROOT/**'
- 'modules/**'
- 'antora.yml'
- '.github/workflows/build-pr-preview.yml'
jobs:
validate_xref:
runs-on: ubuntu-22.04
env:
COMPONENT_NAME: cloud
COMPONENT_BRANCH_NAME: ${{ github.head_ref }}
steps:
- name: Validate xref
uses: bonitasoft/bonita-documentation-site/.github/actions/build-pr-site/@master
with:
# '>' Replace newlines with spaces (folded)
# '-' No newline at end (strip)
build-preview-command: >-
./build-preview.bash
--component "${{ env.COMPONENT_NAME }}"
--branch "${{ env.COMPONENT_BRANCH_NAME }}"
component-name: cloud
fail-on-warning: true
4 changes: 2 additions & 2 deletions .github/workflows/contribution-checks.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Contribution checks

on:
pull_request:
pull_request_target:

jobs:
check_antora_content_guidelines:
permissions:
pull-requests: write # "pr-antora-content-guidelines-checker" write PR comments when the PR doesn't match the "Guidelines"
uses: bonitasoft/bonita-documentation-site/.github/workflows/_reusable_pr-antora-content-guidelines-checker.yml@master
uses: bonitasoft/bonita-documentation-site/.github/workflows/_reusable_pr-antora-content-guidelines-checker.yml@master
Loading