From 94516037af9a098ade41037cd86781c7579253a3 Mon Sep 17 00:00:00 2001 From: Taylor Jones Date: Mon, 17 Oct 2022 13:34:27 -0500 Subject: [PATCH] ci(actions): automatically open content sync issues on platform (#3193) * ci(actions): automatically open content sync issues on platform * Update .github/workflows/platform-content-sync.yml Co-authored-by: Matt Rosno * chore(formatting): output of yarn:format Co-authored-by: Matt Rosno Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- .github/workflows/platform-content-sync.yml | 24 +++++++++++++++++++++ src/pages/components/accordion/usage.mdx | 6 ++++-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/platform-content-sync.yml diff --git a/.github/workflows/platform-content-sync.yml b/.github/workflows/platform-content-sync.yml new file mode 100644 index 00000000000..ce6f46d90f3 --- /dev/null +++ b/.github/workflows/platform-content-sync.yml @@ -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 }} diff --git a/src/pages/components/accordion/usage.mdx b/src/pages/components/accordion/usage.mdx index 68d059a0119..7e2a6e17f3c 100755 --- a/src/pages/components/accordion/usage.mdx +++ b/src/pages/components/accordion/usage.mdx @@ -55,7 +55,8 @@ extra click; instead use a full scrolling page with normal headers. id: 'accordion', label: 'Accordion', }, - ]}> + ]} +> + }} + > {`

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.