Skip to content

Commit 6b89943

Browse files
authored
Merge pull request #26 from tekktrik/dev/build-bundle-ignore
Allow bundles to be skipped from being built
2 parents 4ee6c23 + 823e721 commit 6b89943

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

release-gh/action.yml

+22-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ inputs:
2121
for GitHub releases
2222
required: true
2323
default: ""
24+
ignore-bundles:
25+
description: |
26+
A comma and space separated list of bundles to be skipped when building.
27+
Valid options are py, mpy, example, and json. For example, to skip
28+
building the MPY and example bundles, this field would be: mpy, example
29+
required: true
30+
default: ""
2431
runs:
2532
using: "composite"
2633
steps:
@@ -63,9 +70,23 @@ runs:
6370
else
6471
echo prefix-arg="--package_folder_prefix ${{ inputs.package-prefix }}" >> $GITHUB_OUTPUT
6572
fi
73+
- name: Add the given bundle ignores
74+
id: ignore-bundles-arg
75+
shell: bash
76+
run: |
77+
if [ "${{ inputs.ignore-bundles }}" == "" ]; then
78+
echo ignore-bundles="" >> $GITHUB_OUTPUT
79+
else
80+
echo ignore-bundles='--ignore "${{ inputs.ignore-bundles }}"' >> $GITHUB_OUTPUT
81+
fi
6682
- name: Build assets
6783
shell: bash
68-
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location . ${{ steps.package-prefix-arg.outputs.prefix-arg }}
84+
run: |
85+
circuitpython-build-bundles \
86+
--filename_prefix ${{ steps.repo-name.outputs.repo-name }} \
87+
--library_location . \
88+
${{ steps.package-prefix-arg.outputs.prefix-arg }} \
89+
${{ steps.ignore-bundles-arg.outputs.prefix-arg }}
6990
- name: Upload Release Assets
7091
uses: shogo82148/actions-upload-release-asset@v1
7192
with:

0 commit comments

Comments
 (0)