Skip to content

Commit 801659b

Browse files
committed
ci: Fix checking out of chipflow-examples
1 parent 5d46cb3 commit 801659b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/main.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,21 @@ jobs:
6262
with:
6363
submodules: true
6464

65-
- name: Check out chipflow-examples
65+
- name: Check out chipflow-examples ${{ github.head_ref || 'refs/heads/main' }}
6666
uses: actions/checkout@v4
67+
continue-on-error: true
6768
with:
6869
repository: ChipFlow/chipflow-examples
6970
path: chipflow-examples
7071
ref: ${{ github.head_ref || 'refs/heads/main' }}
7172

73+
- name: Check out chipflow-examples main
74+
uses: actions/checkout@v4
75+
if: ${{ failure() && steps.step2.conclusion == 'failure' }} }}
76+
with:
77+
repository: ChipFlow/chipflow-examples
78+
path: chipflow-examples
79+
7280
- name: Set up PDM
7381
uses: pdm-project/setup-pdm@v4
7482
with:

0 commit comments

Comments
 (0)