Skip to content

Commit

Permalink
CI: Moves naming from build workflow to CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Mintoo200 committed Mar 19, 2024
1 parent d4fe780 commit 45fde1a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ jobs:
build-storybook:
needs: [tests, type-check]
uses: ./.github/workflows/build-storybook.yml
with:
ARTIFACT_NAME: "storybook-${{ github.head_ref }}"
16 changes: 14 additions & 2 deletions .github/workflows/build-storybook.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
name: 'Build Storybook'

on: [workflow_call, workflow_dispatch]
on:
workflow_call:
inputs:
artifact-name:
description: name of the artifact to be pushed
required: true
type: string
workflow_dispatch:
inputs:
artifact-name:
description: name of the artifact to be pushed
required: false
type: string

env:
ARTIFACT_NAME: "storybook-${{ github.head_ref }}"
ARTIFACT_NAME: ${{ inputs.artifact-name || format('storybook-{0}', github.sha) }}

jobs:
build:
Expand Down

0 comments on commit 45fde1a

Please sign in to comment.