Skip to content

Commit

Permalink
fix: remove the deployed storybook when the PR is closed (#12)
Browse files Browse the repository at this point in the history
# Description

- Add checkout action

## Reason

It's required for the deployment step to work properly.

---

<!-- Auto-generated section. DO NOT DELETE -->

---------

Signed-off-by: Luís Couto <[email protected]>
  • Loading branch information
Couto authored Dec 14, 2024
1 parent 4c6c0ad commit 7cdd2ec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/on-pull-request-close.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Feature Branch
name: Feature Branch Closed

on:
pull_request:
Expand All @@ -12,6 +12,11 @@ jobs:
if: github.event.action == 'closed' && github.event.pull_request.draft == false
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
Expand Down

0 comments on commit 7cdd2ec

Please sign in to comment.