Skip to content
Merged
Changes from 9 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
16 changes: 10 additions & 6 deletions .github/workflows/site-policy-sync.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: site-policy-sync

# **What it does**: Updates our site policy docs when changes happen to site policy.
# **Why we have it**: We want up to date site policy docs.
# **Who does it impact**: Site policy team.
# **What it does**: Updates our site-policy repo when changes happen to site policy docs.
# **Why we have it**: We want keep site-policy repo up to date.
# **Who does it impact**: Site-policy team.

# Controls when the action will run.
on:
Expand Down Expand Up @@ -30,6 +30,10 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
# Sets commit message
- name: custom message
run: |
echo "MESSAGE=${{github.event.pull_request.title}}" >> $GITHUB_ENV

# Pushes to other repo
- name: Push folder to another repository
Expand All @@ -42,6 +46,6 @@ jobs:
destination_branch: 'main'
destination_branch_create: 'repo-sync'
destination_folder: 'Policies'
user_email: 'pcihon@users.noreply.github.com'
user_name: 'pcihon'
commit_msg: 'Automatic sync from GitHub Docs.'
user_email: 'site-policy-bot@users.noreply.github.com'
user_name: 'site-policy-bot'
commit_msg: '${{ env.MESSAGE }}'