1
0
mirror of synced 2026-01-06 06:02:35 -05:00

Update site-policy-sync.yml (#23248)

This commit is contained in:
Kevin Xu
2021-12-01 11:27:52 -08:00
committed by GitHub
parent 14d01ee11f
commit 089c9630dd

View File

@@ -37,6 +37,8 @@ jobs:
path: public-repo
- name: Commits internal policies to copy of public repo with descriptive message from triggering PR title
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
cd public-repo
git config --local user.name 'site-policy-bot'
@@ -46,7 +48,6 @@ jobs:
git status
git checkout -b automated-sync-$GITHUB_RUN_ID
git add .
PR_TITLE=${{ github.event.pull_request.title }}
echo PR_TITLE: $PR_TITLE
[[ ! -z $PR_TITLE ]] && DESCRIPTION="${PR_TITLE}" || DESCRIPTION="Update manually triggered by workflow"
echo "DESCRIPTION=$DESCRIPTION" >> $GITHUB_ENV