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
Changes from 1 commit
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 }}" --body 'The following pull request on carbon-website was just merged. It contains .mdx content changes that may need synced to platform.
tay1orjones marked this conversation as resolved.
Show resolved Hide resolved
- https://www.github.com/carbon-design-system/carbon-website/pull/${{ github.event.number }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}