From d72a7e05aa0776bf5f37f4e309a22c08c81631cb Mon Sep 17 00:00:00 2001 From: Albert Y <76888457+filterpaper@users.noreply.github.com> Date: Fri, 22 Apr 2022 08:17:40 +0800 Subject: [PATCH] Add support for custom artifact name --- .github/workflows/build-user-config.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-user-config.yml b/.github/workflows/build-user-config.yml index 587cede2..33f35c54 100644 --- a/.github/workflows/build-user-config.yml +++ b/.github/workflows/build-user-config.yml @@ -18,6 +18,11 @@ on: default: "bin" required: false type: string + artifact_name: + description: 'Artifact output file name' + default: 'firmware' + required: false + type: string jobs: matrix: @@ -117,5 +122,5 @@ jobs: - name: Archive (${{ steps.variables.outputs.display-name }}) uses: actions/upload-artifact@v2 with: - name: firmware + name: ${{ inputs.artifact_name }} path: build/artifacts