Skip to content

Commit 53ececd

Browse files
committed
update how lowercase is done
1 parent 358f264 commit 53ececd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,16 @@ runs:
8888
working-directory: ${{ github.action_path }}
8989
shell: bash
9090
run: |
91+
# save the runner OS to a variable in lower case
92+
os_name=$(echo ${{ runner.os }} | tr '[:upper:]' '[:lower:]')
9193
# setup the python environment
9294
${{ steps.id_python_310.outputs.python-path }} -m pip install -r requirements.txt
9395
# we need to clone v4.7.0 of esptool into the repo to ensure all of its data is properly packaged
9496
git clone --depth 1 --branch v4.7.0 https://github.com/espressif/esptool
9597
# now build the installer
9698
${{ steps.id_python_310.outputs.python-path }} -m PyInstaller --clean programmer.spec
9799
# now actually make the artifact
98-
artifact_name="${{ inputs.programmer-name }}_${{ env.version_str }}_${{ runner.os.lower() }}.bin"
100+
artifact_name="${{ inputs.programmer-name }}_${{ env.version_str }}_${os_name}.bin"
99101
mv dist/programmer $artifact_name
100102
echo "artifactName=$artifact_name" >> "$GITHUB_ENV"
101103

0 commit comments

Comments
 (0)