File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 9
9
description : ' The version of Python to use in the CI'
10
10
required : true
11
11
default : ' 3.x'
12
+ package-prefix :
13
+ description : |
14
+ The prefix (or name) of your pacakge (if applicable) to use
15
+ for GitHub releases
16
+ required : true
17
+ default : " "
12
18
runs :
13
19
using : " composite"
14
20
steps :
64
70
pip install ".[optional]"
65
71
pytest
66
72
fi
73
+ - name : Add the given package filename_prefix
74
+ id : package-prefix-arg
75
+ shell : bash
76
+ run : |
77
+ if [ "${{ inputs.package-prefix }}" == "" ]; then
78
+ echo prefix-arg="" >> $GITHUB_OUTPUT
79
+ else
80
+ echo prefix-arg="--package_folder_prefix ${{ inputs.package-prefix }}" >> $GITHUB_OUTPUT
81
+ fi
67
82
- name : Build assets
68
83
shell : bash
69
- run : circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location .
84
+ run : circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location . ${{ steps.package-prefix-arg.outputs.prefix-arg }}
70
85
- name : Archive bundles
71
86
uses : actions/upload-artifact@v3
72
87
with :
You can’t perform that action at this time.
0 commit comments