@@ -302,7 +302,7 @@ jobs:
302
302
authenticated : ${{ needs.checks.outputs.forked_workflow != 'true' }}
303
303
full-build : ${{ inputs.force && inputs.force || false }}
304
304
tag : ${{ needs.checks.outputs.build_tag }}
305
- branch : ${{ github.head_ref && github.head_ref || github.ref }}
305
+ branch : ${{ ( github.head_ref && needs.checks.outputs.forked_workflow != 'true') && github.head_ref || github.ref }}
306
306
permissions :
307
307
contents : read
308
308
actions : read
@@ -325,7 +325,7 @@ jobs:
325
325
target : ${{ matrix.target }}
326
326
go-md5 : ${{ needs.checks.outputs.go_code_md5 }}
327
327
base-image-md5 : ${{ needs.checks.outputs.docker_md5 }}
328
- branch : ${{ github.head_ref && github.head_ref || github.ref }}
328
+ branch : ${{ ( github.head_ref && needs.checks.outputs.forked_workflow != 'true') && github.head_ref || github.ref }}
329
329
tag : ${{ needs.checks.outputs.build_tag }}
330
330
authenticated : ${{ needs.checks.outputs.forked_workflow != 'true' }}
331
331
full-build : ${{ inputs.force && inputs.force || false }}
@@ -349,7 +349,7 @@ jobs:
349
349
target : ${{ matrix.target }}
350
350
go-md5 : ${{ needs.checks.outputs.go_code_md5 }}
351
351
base-image-md5 : ${{ needs.checks.outputs.docker_md5 }}
352
- branch : ${{ github.head_ref && github.head_ref || github.ref }}
352
+ branch : ${{ ( github.head_ref && needs.checks.outputs.forked_workflow != 'true') && github.head_ref || github.ref }}
353
353
tag : ${{ needs.checks.outputs.build_tag }}
354
354
nap-modules : ${{ matrix.nap_modules }}
355
355
authenticated : ${{ needs.checks.outputs.forked_workflow != 'true' }}
0 commit comments