Skip to content

Commit 168ca2e

Browse files
authored
Merge pull request #18400 from github/site-policy-sync-update
Updating site-policy-sync workflow
2 parents 9a02c3c + 75160c1 commit 168ca2e

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/site-policy-sync.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: site-policy-sync
22

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

77
# Controls when the action will run.
88
on:
@@ -30,6 +30,10 @@ jobs:
3030
steps:
3131
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3232
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
33+
# Sets commit message
34+
- name: custom message
35+
run: |
36+
echo "MESSAGE=${{github.event.pull_request.title}}" >> $GITHUB_ENV
3337
3438
# Pushes to other repo
3539
- name: Push folder to another repository
@@ -42,6 +46,6 @@ jobs:
4246
destination_branch: 'main'
4347
destination_branch_create: 'repo-sync'
4448
destination_folder: 'Policies'
45-
user_email: 'pcihon@users.noreply.github.com'
46-
user_name: 'pcihon'
47-
commit_msg: 'Automatic sync from GitHub Docs.'
49+
user_email: 'site-policy-bot@users.noreply.github.com'
50+
user_name: 'site-policy-bot'
51+
commit_msg: '${{ env.MESSAGE }}'

0 commit comments

Comments
 (0)