Skip to content

Commit

Permalink
ci: fix "validate ref" workflow when called from another repo (#730)
Browse files Browse the repository at this point in the history
Introduce the same workaround as in `_reusable_pr-comment-list-changes.yml`
to make the workflow work when it is called from another repository.
  • Loading branch information
benjaminParisel authored Jun 12, 2024
1 parent a678fb4 commit dd74059
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/_reusable_pr-validate-references.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,17 @@ jobs:
# This is a temporary implementation to switch from the composite action to the reusable action
# Once all repository will use it, the composite action will be removed and its content will be moved here
- uses: actions/checkout@v4 # access to the local action
with:
repository: 'bonitasoft/bonita-documentation-site'
ref: ${{ inputs.doc-site-branch }}
- name: Validate references
uses: ./.github/actions/build-pr-site
with:
build-preview-command: ${{ inputs.build-preview-command }}
component-name: ${{ inputs.component-name }}
doc-site-branch: ${{ inputs.doc-site-branch }}
fail-on-warning: ${{ inputs.fail-on-warning }}
- uses: actions/checkout@v4 # Ugly hack founds on https://github.com/actions/checkout/issues/692#issuecomment-1502203573
with:
repository: 'bonitasoft/bonita-documentation-site'
ref: ${{ inputs.doc-site-branch }}

0 comments on commit dd74059

Please sign in to comment.