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

Update platform-content-sync.yml #3284

Merged
merged 1 commit into from
Nov 28, 2022
Merged
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
11 changes: 4 additions & 7 deletions .github/workflows/platform-content-sync.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
name: Sync content with platform

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

jobs:
if_merged:
if: github.event.pull_request.merged == true
create_issue:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -24,7 +21,7 @@ jobs:
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- 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 }}'
gh issue create --title "[Content sync]: carbon-website ref ${{ github.event.ref }}" --label "role: dev 🤖" --label "service: web-app 🌎" --body 'A pull request on carbon-website was just merged. It contains .mdx content changes that may need to be synced to platform:
- ${{ github.event.compare }}'
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}