Skip to content

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronBeneteau committed Dec 2, 2024
1 parent c902925 commit 2359f7e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
path: firmware/build/${{ steps.defaults.outputs.project }}-${{ steps.defaults.outputs.platform }}
name: build-artifact-${{ steps.sanitize.outputs.project_name }}-${{ steps.defaults.outputs.platform }}
name: build-artifact-${{ steps.sanitize.outputs.sanitized_name }}-${{ steps.defaults.outputs.platform }}
21 changes: 21 additions & 0 deletions .github/workflows/test-project-name.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Test Project Name

on:
push:

jobs:
test-string-replacement:
runs-on: ubuntu-latest
steps:
- name: Test project name sanitization
id: sanitize
run: |
project_name="Demo/Blink"
sanitized_name="${project_name//\//-}"
echo "Original project name: $project_name"
echo "Sanitized project name: $sanitized_name"
echo "::set-output name=sanitized_name::$sanitized_name"
- name: Display sanitized project name
run: |
echo "Sanitized project name is: ${{ steps.sanitize.outputs.sanitized_name }}"

0 comments on commit 2359f7e

Please sign in to comment.