Skip to content

Commit

Permalink
CI: Add environement variable to storybook build
Browse files Browse the repository at this point in the history
  • Loading branch information
Mintoo200 committed Mar 19, 2024
1 parent 8eb17ed commit d4fe780
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit d4fe780

Please sign in to comment.