File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 74
74
pull-requests : write # it creates a pr
75
75
env :
76
76
GITHUB_TOKEN : ${{ github.token }}
77
+ BRANCH_NAME : reference-merge-${{ github.event.head_commit.id }}
77
78
runs-on : ubuntu-latest
78
79
if : github.event_name == 'push' || github.event_name == 'workflow_dispatch'
79
80
steps :
@@ -97,19 +98,18 @@ jobs:
97
98
98
99
- name : Push
99
100
run : |
100
- BranchName=reference-merge-${{ github.event.head_commit.id }}
101
101
Url=${{ github.server_url }}
102
102
Server=${Url#*://}
103
103
Scheme=${Url%%://*}
104
104
Remote=${Scheme}://${{ github.token }}@${Server}/${{ github.repository }}
105
- git push $Remote HEAD:refs/heads/$BranchName
105
+ git push $Remote HEAD:refs/heads/$BRANCH_NAME
106
106
107
- - name : Format the message and create a pull request
107
+ - name : Prepare the message and create a pull request
108
108
run : |
109
109
<.github/workflows/reference-sync/pr-template.md sed -E "
110
110
s^<<commit-id>>^${{ github.event.head_commit.id }}^g;
111
111
s^<<author>>^${{ github.event.head_commit.author.username }}^g;
112
112
s^<<repo-url>>^${Url}/${{ github.repository }}^g;
113
- s^<<branch-name>>^${BranchName }^g;
113
+ s^<<branch-name>>^${BRANCH_NAME }^g;
114
114
" \
115
- | hub pull-request -f -b main -h ${BranchName } -a ${{ github.event.head_commit.author.username }} -l area:documentation -F -
115
+ | hub pull-request -f -b main -h ${BRANCH_NAME } -a ${{ github.event.head_commit.author.username }} -l area:documentation -F -
Original file line number Diff line number Diff line change 1
1
.github/workflows
2
+ changelogs
3
+ docs
2
4
scaladoc
3
- docs
5
+ scaladoc-js
6
+ scaladoc-testcases
7
+ scaladoc
8
+ CONTRIBUTING.md
9
+ MAINTENANCE.md
You can’t perform that action at this time.
0 commit comments