Skip to content

Commit bef014a

Browse files
committed
Make the external help integration optional
The external help repository is private due to license requirements. This change ensures that PRs created by external contributors can still generate the pack as a validation step, but without the external help files.
1 parent 2122a3d commit bef014a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/code-scanning-pack-gen.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ jobs:
184184
add-to-path: false
185185

186186
- name: Checkout external help files
187+
continue-on-error: true
188+
id: checkout-external-help-files
187189
uses: actions/checkout@v2
188190
with:
189191
ssh-key: ${{ secrets.CODEQL_CODING_STANDARDS_HELP_KEY }}
@@ -192,6 +194,7 @@ jobs:
192194
path: external-help-files
193195

194196
- name: Include external help files
197+
if: ${{ steps.checkout-external-help-files.outcome == 'success' }}
195198
run: |
196199
pushd external-help-files
197200
find . -name '*.md' -exec rsync -av --relative {} "$GITHUB_WORKSPACE" \;

0 commit comments

Comments
 (0)