Skip to content

chore: pr template에서 storybook Link 제거 #1

chore: pr template에서 storybook Link 제거

chore: pr template에서 storybook Link 제거 #1

name: append-storybook-link

Check failure on line 1 in .github/workflows/stroybook-link-to-pr-body.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/stroybook-link-to-pr-body.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: build
on:
pull_request:
types: [labeled]
jobs:
build:
if: ${{ github.event.label.name == 'FE' }}
runs-on: ubuntu-latest
append-storybook-link:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: append storybook link
uses: actions/github-script@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const pr = await github.pulls.get({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number
});
const body = pr.data.body;
const newBody = body + "\n\n" + "## 🚀 Storybook \n\n"+ "> https://storybook.carffe.in/";
await github.pulls.update({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
body: newBody
});