diff --git a/.github/workflows/build-test-deploy.yml b/.github/workflows/build-test-deploy.yml index 400d1cc30..24e5fa606 100644 --- a/.github/workflows/build-test-deploy.yml +++ b/.github/workflows/build-test-deploy.yml @@ -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 }} diff --git a/.github/workflows/test-project-name.yml b/.github/workflows/test-project-name.yml new file mode 100644 index 000000000..0fd4ca0bb --- /dev/null +++ b/.github/workflows/test-project-name.yml @@ -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 }}" \ No newline at end of file