Skip to content

Commit

Permalink
ci: improve robustness of the "changes list" reusable workflow (#720)
Browse files Browse the repository at this point in the history
Add a workaround to make it work when the workflow is called from
another repository.

### Notes 

Workaround found in
actions/checkout#692 (comment)
Tested in bonitasoft/bonita-labs-doc#160
  • Loading branch information
benjaminParisel authored Jun 5, 2024
1 parent d91131c commit 76b302e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/_reusable_pr-comment-list-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,7 @@ jobs:
pattern: ${{ inputs.pattern }}
component-name: ${{ inputs.component-name }}
doc-site-branch : ${{ inputs.doc-site-branch }}
- 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 }}
2 changes: 1 addition & 1 deletion .github/workflows/pr-comment-list-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request_target:
paths:
- '.github/actions/comment-pr-with-links/**/*'
- '.github/workflows/_reusable_pr-comment-list-changes'
- '.github/workflows/_reusable_pr-comment-list-changes.yml'
- '.github/workflows/pr-comment-list-changes.yml'

jobs:
Expand Down

0 comments on commit 76b302e

Please sign in to comment.