From 3c253b3fb1dc13751d3ff1675cd7dd989d2e4e4b 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 c3aeff20..01a0b657 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