File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 1
- name : Custom board build
1
+ name : Build board (custom)
2
2
3
3
on :
4
4
workflow_dispatch :
21
21
description : ' Flags: Build flags (e.g. CIRCUITPY_WIFI=1)'
22
22
required : false
23
23
type : string
24
+ branch :
25
+ description : ' Branch (only if Version="latest")'
26
+ required : false
27
+ default : ' main'
28
+ type : string
24
29
debug :
25
30
description : ' Make a debug build'
26
31
required : false
36
41
- name : Set up repository
37
42
run : |
38
43
git clone --filter=tree:0 https://github.com/adafruit/circuitpython.git $GITHUB_WORKSPACE
44
+ - name : Checkout head / tag
45
+ run : |
39
46
git checkout ${{ inputs.version == 'latest' && 'HEAD' || inputs.version }}
47
+ - name : fork compatibility
48
+ if : github.repository_owner != 'adafruit'
49
+ run : |
50
+ git remote add fork https://github.com/${{github.repository}}.git
51
+ git fetch fork --filter=tree:0
52
+ - name : branch compatibility
53
+ if : inputs.branch != '' && inputs.version == 'latest'
54
+ run : |
55
+ git checkout -b fork-branch fork/${{inputs.branch}}
40
56
- name : Set up identifier
41
57
if : inputs.debug || inputs.flags != ''
42
58
run : |
You can’t perform that action at this time.
0 commit comments