Skip to content

Commit 38be029

Browse files
committed
add information to check out repo step in the ci github action
1 parent 2c0b04f commit 38be029

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ on:
88
workflow_dispatch:
99
inputs:
1010
commit_id:
11-
description: 'Commit ID (optional)'
11+
description: 'Branch or Commit ID (optional)'
1212
required: false
13+
type: string
1314
schedule:
1415
- cron: "0 12 * * *"
1516

@@ -52,7 +53,7 @@ jobs:
5253
asm: ""
5354
runs-on: ${{ matrix.image }}
5455
steps:
55-
- name: Check out repo
56+
- name: Check out repo ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
5657
uses: actions/checkout@v4
5758
with:
5859
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
@@ -93,7 +94,7 @@ jobs:
9394
vis:
9495
runs-on: ubuntu-20.04
9596
steps:
96-
- name: Check out repo
97+
- name: Check out repo ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
9798
uses: actions/checkout@v4
9899
with:
99100
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
@@ -115,7 +116,7 @@ jobs:
115116
needs: [bdist] # bdist is not needed but slow this step down
116117
runs-on: ubuntu-20.04
117118
steps:
118-
- name: Check out repo
119+
- name: Check out repo ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
119120
uses: actions/checkout@v4
120121
with:
121122
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
@@ -140,7 +141,7 @@ jobs:
140141
needs: [bdist] # bdist is not needed but slow this step down
141142
runs-on: ubuntu-20.04
142143
steps:
143-
- name: Check out repo
144+
- name: Check out repo ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
144145
uses: actions/checkout@v4
145146
with:
146147
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
@@ -162,7 +163,7 @@ jobs:
162163
sdist:
163164
runs-on: ubuntu-20.04
164165
steps:
165-
- name: Check out repo
166+
- name: Check out repo ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
166167
uses: actions/checkout@v4
167168
with:
168169
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
@@ -189,7 +190,7 @@ jobs:
189190
permissions:
190191
checks: write
191192
steps:
192-
- name: Check out repo
193+
- name: Check out repo ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
193194
uses: actions/checkout@v4
194195
with:
195196
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
@@ -236,7 +237,7 @@ jobs:
236237
runs-on: ubuntu-20.04
237238
needs: [bld, vis]
238239
steps:
239-
- name: Check out repo
240+
- name: Check out repo ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
240241
uses: actions/checkout@v4
241242
with:
242243
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
@@ -272,7 +273,7 @@ jobs:
272273
needs: [bdist] # bdist is not needed but slow this step down
273274
runs-on: ubuntu-20.04
274275
steps:
275-
- name: Check out repo
276+
- name: Check out repo ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
276277
uses: actions/checkout@v4
277278
with:
278279
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
@@ -307,7 +308,7 @@ jobs:
307308
image: windows-latest
308309
runs-on: ${{ matrix.image }}
309310
steps:
310-
- name: Check out repo
311+
- name: Check out repo ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
311312
uses: actions/checkout@v4
312313
with:
313314
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
@@ -414,7 +415,7 @@ jobs:
414415
scheduled: ""
415416
runs-on: ${{ matrix.image }}
416417
steps:
417-
- name: Check out repo
418+
- name: Check out repo ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
418419
uses: actions/checkout@v4
419420
with:
420421
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
@@ -494,7 +495,7 @@ jobs:
494495
image: windows-latest
495496
runs-on: ${{ matrix.image }}
496497
steps:
497-
- name: Check out repo
498+
- name: Check out repo ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
498499
uses: actions/checkout@v4
499500
with:
500501
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
@@ -583,7 +584,7 @@ jobs:
583584
image: windows-latest
584585
runs-on: ${{ matrix.image }}
585586
steps:
586-
- name: Check out repo
587+
- name: Check out repo ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
587588
uses: actions/checkout@v4
588589
with:
589590
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
@@ -665,7 +666,7 @@ jobs:
665666
permissions:
666667
checks: write
667668
steps:
668-
- name: Check out repo
669+
- name: Check out repo ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
669670
uses: actions/checkout@v4
670671
with:
671672
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
@@ -698,7 +699,7 @@ jobs:
698699
permissions:
699700
checks: write
700701
steps:
701-
- name: Check out repo
702+
- name: Check out repo ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
702703
uses: actions/checkout@v4
703704
with:
704705
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}

0 commit comments

Comments
 (0)