Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(actions): automatically open content sync issues on platform #3193

Merged
merged 6 commits into from
Oct 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
tay1orjones marked this conversation as resolved.
Show resolved Hide resolved
tay1orjones marked this conversation as resolved.
Show resolved Hide resolved
- 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