Skip to content

Commit 33ea15d

Browse files
authored
Merge pull request #347 from LeaYeh/cd-handle-merge-conflict
2 parents 9a1bd53 + 84f88e5 commit 33ea15d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/delivery.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,23 @@ jobs:
3737
echo "proceed=false" >> "$GITHUB_ENV"
3838
fi
3939
40+
- name: Save .github directory
41+
if: env.proceed == 'true'
42+
run: |
43+
cp -rf .github ~/.github
44+
4045
- name: Setup evaluation branch
4146
if: env.proceed == 'true'
4247
run: |
4348
git checkout -b evaluation origin/evaluation || git checkout -b evaluation
4449
git merge origin/main || (git checkout --theirs . && git add -A)
4550
51+
- name: Restore .github directory
52+
if: env.proceed == 'true'
53+
run: |
54+
rm -rf .github
55+
mv ~/.github .github
56+
4657
- name: Partial cleanup of forbidden files
4758
if: env.proceed == 'true'
4859
uses: ./.github/actions/cleanup_partial

0 commit comments

Comments
 (0)