File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 outputs :
3030 front_build_conclusion : ${{ steps.get-status.outputs.conclusion }}
3131 steps :
32+ - name : Check if fork
33+ id : check-fork
34+ run : |
35+ if [ "${{ github.event.workflow_run.head_repository.full_name }}" != "${{ github.repository }}" ]; then
36+ echo "is_fork=true" >> $GITHUB_OUTPUT
37+ else
38+ echo "is_fork=false" >> $GITHUB_OUTPUT
39+ fi
3240 - uses : actions/github-script@v7
3341 id : get-status
3442 with :
4957 - uses : actions/checkout@v4
5058 with :
5159 ref : ${{ github.event.workflow_run.head_branch }}
60+ persist-credentials : false
5261 fetch-depth : 0
5362 - name : Download frontend build artifact from CI Front
54- if : needs.check-front-build.outputs.front_build_conclusion == 'success'
63+ if : |
64+ needs.check-front-build.outputs.is_fork != 'true' &&
65+ needs.check-front-build.outputs.front_build_conclusion == 'success'
5566 uses : actions/download-artifact@v4
5667 continue-on-error : true
5768 with :
You can’t perform that action at this time.
0 commit comments