File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -68,15 +68,17 @@ jobs:
68
68
- name : Determine ref for external help files
69
69
id : determine-ref
70
70
run : |
71
- if [[ $GITHUB_EVENT_NAME == "pull_request" || $GITHUB_EVENT_NAME == "merge_group" ]]; then
72
- echo "EXTERNAL_HELP_REF=$GITHUB_HEAD_REF" >> "$GITHUB_ENV"
71
+ if [[ $GITHUB_EVENT_NAME == "pull_request" ]]; then
72
+ EXTERNAL_HELP_REF="${{ github.event.pull_request.base.ref }}"
73
+ elif [[ $GITHUB_EVENT_NAME == "merge_group" ]]; then
74
+ EXTERNAL_HELP_REF="${{ github.event.merge_group.base_ref }}"
73
75
else
74
- echo " EXTERNAL_HELP_REF=$GITHUB_REF" >> "$GITHUB_ENV "
76
+ EXTERNAL_HELP_REF="$GITHUB_REF "
75
77
fi
78
+ echo "EXTERNAL_HELP_REF=$EXTERNAL_HELP_REF" >> "$GITHUB_ENV"
76
79
echo "Using ref $EXTERNAL_HELP_REF for external help files."
77
80
78
81
- name : Checkout external help files
79
- continue-on-error : true
80
82
id : checkout-external-help-files
81
83
uses : actions/checkout@v4
82
84
with :
You can’t perform that action at this time.
0 commit comments