Skip to content

Commit

Permalink
fix: indentation of cleanup-preview job
Browse files Browse the repository at this point in the history
  • Loading branch information
choiseona committed Nov 11, 2024
1 parent 63a08e3 commit 602c615
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/storybook-preview-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,35 +67,35 @@ jobs:
body: `📚 Storybook preview deployed to: [${previewUrl}](${previewUrl})`
})
cleanup-preview:
if: github.event.action == 'closed'
runs-on: ubuntu-latest
cleanup-preview:
if: github.event.action == 'closed'
runs-on: ubuntu-latest

permissions:
contents: write
pull-requests: write
permissions:
contents: write
pull-requests: write

steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: gh-pages
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: gh-pages

- name: Delete preview directory
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git rm -rf storybook/preview-${{ github.event.number }}
git commit -m "docs: remove storybook preview for PR #${{ github.event.number }}"
git push origin gh-pages
- name: Delete preview directory
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git rm -rf storybook/preview-${{ github.event.number }}
git commit -m "docs: remove storybook preview for PR #${{ github.event.number }}"
git push origin gh-pages
- name: Comment Cleanup Notification
uses: actions/github-script@v6
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `🧹 Storybook preview for PR #${context.issue.number} has been removed.`
})
- name: Comment Cleanup Notification
uses: actions/github-script@v6
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `🧹 Storybook preview for PR #${context.issue.number} has been removed.`
})
2 changes: 1 addition & 1 deletion client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const App = () => {
<span className="flex min-h-28 items-center justify-center text-3xl text-violet-950">그림꾼</span>
</Modal>

{/* storybook-preview test2 */}
{/* storybook-preview test3 */}
</main>
);
};
Expand Down

0 comments on commit 602c615

Please sign in to comment.