@@ -302,7 +302,7 @@ jobs:
302302 authenticated : ${{ needs.checks.outputs.forked_workflow != 'true' }}
303303 full-build : ${{ inputs.force && inputs.force || false }}
304304 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 }}
306306 permissions :
307307 contents : read
308308 actions : read
@@ -325,7 +325,7 @@ jobs:
325325 target : ${{ matrix.target }}
326326 go-md5 : ${{ needs.checks.outputs.go_code_md5 }}
327327 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 }}
329329 tag : ${{ needs.checks.outputs.build_tag }}
330330 authenticated : ${{ needs.checks.outputs.forked_workflow != 'true' }}
331331 full-build : ${{ inputs.force && inputs.force || false }}
@@ -349,7 +349,7 @@ jobs:
349349 target : ${{ matrix.target }}
350350 go-md5 : ${{ needs.checks.outputs.go_code_md5 }}
351351 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 }}
353353 tag : ${{ needs.checks.outputs.build_tag }}
354354 nap-modules : ${{ matrix.nap_modules }}
355355 authenticated : ${{ needs.checks.outputs.forked_workflow != 'true' }}
0 commit comments