Skip to content

Commit

Permalink
ci(actions): automatically open content sync issues on platform (#3193)
Browse files Browse the repository at this point in the history
* ci(actions): automatically open content sync issues on platform

* Update .github/workflows/platform-content-sync.yml

Co-authored-by: Matt Rosno <[email protected]>

* chore(formatting): output of yarn:format

Co-authored-by: Matt Rosno <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 17, 2022
1 parent c73744d commit 9451603
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/platform-content-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Sync content with platform

on:
pull_request:
types:
- closed
paths:
- '**.mdx'

jobs:
if_merged:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: carbon-design-system/carbon-platform
ref: main
- name: Create issue on platform repo
run: |
gh issue create --title "[Content sync]: carbon-website PR ${{ github.event.number }}" --label "role: dev 🤖" --label "service: web-app 🌎" --body 'The following pull request on carbon-website was just merged. It contains .mdx content changes that may need synced to platform.
- https://www.github.com/carbon-design-system/carbon-website/pull/${{ github.event.number }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 4 additions & 2 deletions src/pages/components/accordion/usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ extra click; instead use a full scrolling page with normal headers.
id: 'accordion',
label: 'Accordion',
},
]}>
]}
>
<ComponentVariant
id="accordion"
knobs={{
Expand All @@ -70,7 +71,8 @@ extra click; instead use a full scrolling page with normal headers.
Vue: 'http://vue.carbondesignsystem.com/?path=/story/components-cvaccordion--default',
'Web Components':
'https://web-components.carbondesignsystem.com/?path=/story/components-accordion--default',
}}>
}}
>
{`
<Accordion>
<AccordionItem title="Title 1"><p>The accordion component delivers large amounts of content in a small space through progressive disclosure. The user gets key details about the underlying content and can choose to expand that content within the constraints of the accordion. Accordions work especially well on mobile interfaces or whenever vertical space is at a premium.</p></AccordionItem>
Expand Down

1 comment on commit 9451603

@vercel
Copy link

@vercel vercel bot commented on 9451603 Oct 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.