We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2fa1bf8 + 5220d03 commit 716e64fCopy full SHA for 716e64f
1 file changed
.github/workflows/site-policy-sync.yml
@@ -19,9 +19,7 @@ on:
19
jobs:
20
sync:
21
name: Get the latest docs
22
- if: >-
23
- github.event.pull_request.merged == true &&
24
- github.repository == 'github/docs-internal'
+ if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && github.repository == 'github/docs-internal')
25
runs-on: ubuntu-latest
26
permissions:
27
contents: write
@@ -49,6 +47,7 @@ jobs:
49
47
git checkout -b automated-sync-$GITHUB_RUN_ID
50
48
git add .
51
PR_TITLE=${{ github.event.pull_request.title }}
+ echo PR_TITLE: $PR_TITLE
52
[[ ! -z $PR_TITLE ]] && DESCRIPTION="${PR_TITLE}" || DESCRIPTION="Update manually triggered by workflow"
53
echo "DESCRIPTION=$DESCRIPTION" >> $GITHUB_ENV
54
git commit -m "$(echo $DESCRIPTION)"
0 commit comments