From d4fe780058477c20efbefd5c41b249fc4120e5e2 Mon Sep 17 00:00:00 2001 From: Gauthier Fiorentino Date: Tue, 19 Mar 2024 17:00:22 +0100 Subject: [PATCH] CI: Add environement variable to storybook build --- .github/workflows/build-storybook.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-storybook.yml b/.github/workflows/build-storybook.yml index d95ddbd..ac4f48b 100644 --- a/.github/workflows/build-storybook.yml +++ b/.github/workflows/build-storybook.yml @@ -2,6 +2,9 @@ name: 'Build Storybook' on: [workflow_call, workflow_dispatch] +env: + ARTIFACT_NAME: "storybook-${{ github.head_ref }}" + jobs: build: runs-on: ubuntu-latest @@ -22,6 +25,6 @@ jobs: uses: actions/upload-artifact@v4 with: # TODO (GAFI 19-03-2024): Add variable for this to avoid using ref when not provided - name: storybook-${{ github.head_ref }} + name: ${{ env.ARTIFACT_NAME }} path: ./storybook-static if-no-files-found: error