2222 with :
2323 path : ' dotty'
2424 ref : ' language-reference-stable'
25+ fetch-depth : 0
2526 ssh-key : ${{ secrets.DOCS_KEY }}
2627
2728 - name : Cache Coursier
4344
4445 - name : Generate reference documentation and test links
4546 run : |
46- ./dotty/project/scripts/sbt scaladoc/generateReferenceDocumentation --no-regenerate-expected-links
47- ./dotty/project/scripts/docsLinksStability ./dotty/scaladoc/output/reference ./dotty/project/scripts/expected-links/reference-expected-links.txt
47+ cd dotty
48+ ./project/scripts/sbt scaladoc/generateReferenceDocumentation --no-regenerate-expected-links
49+ ./project/scripts/docsLinksStability ./scaladoc/output/reference ./project/scripts/expected-links/reference-expected-links.txt
50+ cd ..
4851
4952 - name : Push changes to scala3-reference-docs
5053 if : github.event_name == 'push'
6366 git config user.name gh-actions
6467 git config user.email actions@github.com
6568 git add .
66- git commit -m "UPDATE ${{ steps.date.outputs.date }}"
67- git push
69+ if ! git diff-index --quiet HEAD; then
70+ git commit -m "UPDATE ${{ steps.date.outputs.date }}"
71+ git push
72+ fi
6873 cd ..
6974
7075 - name : Merge changes to main
@@ -73,14 +78,20 @@ jobs:
7378 cd dotty
7479 git fetch origin main:main
7580 git checkout main
81+ git config user.name gh-actions
82+ git config user.email actions@github.com
7683 git merge language-reference-stable
7784 cd ..
7885
79- - name : Create pull reuqest with backport to main
86+ - name : Create pull request with backport to main
8087 if : github.event_name == 'push'
8188 uses : peter-evans/create-pull-request@v4
8289 with :
8390 path : dotty
8491 branch : language-reference-backport
8592 labels : area:documentation
93+ title : Backport changes from stable documentation branch
94+ body : This pull request is created automatically after push to stable documentation branch and backports the changes
95+ reviewers : pikinier20,julienrf
96+ assignees : pikinier20
8697
0 commit comments