Skip to content

Commit d89436c

Browse files
committed
fix
1 parent 7b33d9d commit d89436c

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/ci-e2e.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ jobs:
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:
@@ -49,9 +57,12 @@ jobs:
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:

0 commit comments

Comments
 (0)