File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -65,14 +65,24 @@ jobs:
65
65
with :
66
66
cli_path : ${{ github.workspace }}/codeql_home/codeql
67
67
68
+ - name : Determine ref for external help files
69
+ id : determine-ref
70
+ run : |
71
+ if [[ $GITHUB_EVENT_NAME == "pull_request" ]]; then
72
+ echo "EXTERNAL_HELP_REF=$GITHUB_HEAD_REF" >> "$GITHUB_ENV"
73
+ else
74
+ echo "EXTERNAL_HELP_REF=$GITHUB_REF" >> "$GITHUB_ENV"
75
+ fi
76
+ echo "Using ref $EXTERNAL_HELP_REF for external help files."
77
+
68
78
- name : Checkout external help files
69
79
continue-on-error : true
70
80
id : checkout-external-help-files
71
81
uses : actions/checkout@v4
72
82
with :
73
83
ssh-key : ${{ secrets.CODEQL_CODING_STANDARDS_HELP_KEY }}
74
84
repository : " github/codeql-coding-standards-help"
75
- ref : ${{ needs.determine-ref.outputs.ref }}
85
+ ref : ${{ env.EXTERNAL_HELP_REF }}
76
86
path : external-help-files
77
87
78
88
- name : Include external help files
You can’t perform that action at this time.
0 commit comments