83
83
with :
84
84
persist-credentials : false
85
85
submodules : true
86
+ ref : ${{ github.ref }} # Include changes to the target branch when action is re-run https://github.com/actions/checkout/issues/1036
86
87
- name : Mark the workspace as safe
87
88
# https://github.com/actions/checkout/issues/766
88
89
run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
@@ -104,6 +105,7 @@ jobs:
104
105
with :
105
106
persist-credentials : false
106
107
submodules : true
108
+ ref : ${{ github.ref }} # Include changes to the target branch when action is re-run https://github.com/actions/checkout/issues/1036
107
109
- name : Run documentation check
108
110
run : |
109
111
apt-get -qq update && apt-get -qq -y install curl yq
@@ -120,6 +122,7 @@ jobs:
120
122
with :
121
123
persist-credentials : false
122
124
submodules : true
125
+ ref : ${{ github.ref }} # Include changes to the target branch when action is re-run https://github.com/actions/checkout/issues/1036
123
126
- name : Run unacceptable language check
124
127
env :
125
128
UNACCEPTABLE_WORD_LIST : ${{ inputs.unacceptable_language_check_word_list}}
@@ -136,6 +139,7 @@ jobs:
136
139
with :
137
140
persist-credentials : false
138
141
submodules : true
142
+ ref : ${{ github.ref }} # Include changes to the target branch when action is re-run https://github.com/actions/checkout/issues/1036
139
143
- name : Run license header check
140
144
env :
141
145
PROJECT_NAME : ${{ inputs.license_header_check_project_name }}
@@ -152,6 +156,7 @@ jobs:
152
156
with :
153
157
persist-credentials : false
154
158
submodules : true
159
+ ref : ${{ github.ref }} # Include changes to the target branch when action is re-run https://github.com/actions/checkout/issues/1036
155
160
- name : Run broken symlinks check
156
161
run : curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/check-broken-symlinks.sh | bash
157
162
@@ -168,6 +173,7 @@ jobs:
168
173
with :
169
174
persist-credentials : false
170
175
submodules : true
176
+ ref : ${{ github.ref }} # Include changes to the target branch when action is re-run https://github.com/actions/checkout/issues/1036
171
177
- name : Mark the workspace as safe
172
178
# https://github.com/actions/checkout/issues/766
173
179
run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
@@ -189,6 +195,7 @@ jobs:
189
195
with :
190
196
persist-credentials : false
191
197
submodules : true
198
+ ref : ${{ github.ref }} # Include changes to the target branch when action is re-run https://github.com/actions/checkout/issues/1036
192
199
- name : Mark the workspace as safe
193
200
# https://github.com/actions/checkout/issues/766
194
201
run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
@@ -208,6 +215,7 @@ jobs:
208
215
with :
209
216
persist-credentials : false
210
217
submodules : true
218
+ ref : ${{ github.ref }} # Include changes to the target branch when action is re-run https://github.com/actions/checkout/issues/1036
211
219
- name : Run yamllint
212
220
run : |
213
221
which yamllint >/dev/null || ( apt-get update && apt-get install -y yamllint )
@@ -228,6 +236,7 @@ jobs:
228
236
with :
229
237
persist-credentials : false
230
238
submodules : true
239
+ ref : ${{ github.ref }} # Include changes to the target branch when action is re-run https://github.com/actions/checkout/issues/1036
231
240
- name : Run flake8
232
241
run : |
233
242
pip3 install flake8 flake8-import-order
0 commit comments