Commit e80d64e 1 parent c71c7eb commit e80d64e Copy full SHA for e80d64e
File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 27
27
28
28
- name : Get branch name
29
29
id : get_branch
30
- run : echo "branch_name=sync/${{ github.event.ref }}" >> $GITHUB_ENV
30
+ run : echo "branch_name=sync/${{ github.event.ref }}_${{github.event.head_commit.timestamp}} " >> $GITHUB_ENV
31
31
32
32
- name : Commit changes
33
33
env :
@@ -38,16 +38,16 @@ jobs:
38
38
git config user.name "${{ github.triggering_actor }}"
39
39
git config user.email "mike@dock.io"
40
40
# Get the commit message from the merged PR
41
- commit_message="${{ github.event.pull_request.title }}"
41
+ commit_message="${{ github.event.head_commit.message }}"
42
42
git add -A .
43
43
git status
44
- git commit -m "Copy files from ${{ github.event.pull_request.head.repo .full_name }} branch $branch_name: $commit_message"
44
+ git commit -m "Copy files from ${{ github.event.repository .full_name }} branch $branch_name: $commit_message"
45
45
# Create PR
46
46
git ls-remote --get-url origin
47
47
git push -u origin ${{ env.branch_name }}
48
48
gh pr create \
49
- --body "This PR copies /docs files from ${{ github.event.pull_request.head.repo .full_name }}." \
50
- --title "${{ github.event.pull_request.title }}" \
49
+ --body "This PR copies /docs files from ${{ github.event.repository .full_name }}." \
50
+ --title "${{ github.event.head_commit.message }}" \
51
51
--head "${{ env.branch_name }}" \
52
52
--base "main"
53
53
echo "Docs successfully pushed to knowledgebase-docs"
You can’t perform that action at this time.
0 commit comments