Skip to content

Commit 9c6962e

Browse files
authored
Update generate-query-help-docs.yml
1 parent 0640d28 commit 9c6962e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/generate-query-help-docs.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,17 @@ jobs:
2222
build:
2323
runs-on: ubuntu-latest
2424
steps:
25-
- name: Clone github/codeql
25+
- if: github.event.inputs.ref
26+
name: Clone github/codeql (user defined ref)
27+
uses: actions/checkout@v2
28+
with:
29+
path: codeql
30+
ref: ${{ github.event.inputs.ref }}
31+
- if: github.event.inputs.ref == ''
32+
name: Clone github/codeql (default ref)
2633
uses: actions/checkout@v2
2734
with:
2835
path: codeql
29-
ref: '{{ github.event.inputs.ref }}'
3036
- name: Clone github/codeql-go
3137
uses: actions/checkout@v2
3238
with:

0 commit comments

Comments
 (0)