diff --git a/.github/workflows/install-and-test.yml b/.github/workflows/install-and-test.yml index 0a0bc76..f20badf 100644 --- a/.github/workflows/install-and-test.yml +++ b/.github/workflows/install-and-test.yml @@ -38,4 +38,8 @@ jobs: run: pnpm lint - name: Unit & Integration test - run: pnpm test \ No newline at end of file + run: pnpm test + + storybook-deployment: + needs: install-and-deployment + uses: ./storybook-deployment.yml diff --git a/.github/workflows/storybook-deloyment.yml b/.github/workflows/storybook-deloyment.yml index 22b9968..ba3cae5 100644 --- a/.github/workflows/storybook-deloyment.yml +++ b/.github/workflows/storybook-deloyment.yml @@ -1,15 +1,11 @@ name: storybook-deloyment on: - workflow_run: - workflows: ['install-and-test'] - types: - - completed + workflow_call: jobs: storybook-deloyment: runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - name: Checkout uses: actions/checkout@v4