File tree Expand file tree Collapse file tree 1 file changed +8
-18
lines changed
Expand file tree Collapse file tree 1 file changed +8
-18
lines changed Original file line number Diff line number Diff line change 88 required : true
99 default : ' v2.13'
1010
11- permissions :
12- contents : write
13- pull-requests : write
14-
1511jobs :
1612 build-and-commit :
1713 runs-on : ubuntu-latest
3228 run : gem install asciidoctor
3329
3430 - name : Install Pandoc
35- run : sudo apt-get update && sudo apt-get install -y pandoc
31+ uses : r-lib/actions/setup- pandoc@v2
3632
3733 - name : Create release notes build directory
3834 run : mkdir release-notes-build
4844 exit 1
4945 fi
5046
51- asciidoctor -v - o "$OUTPUT_FILE" "$INPUT_FILE"
47+ asciidoctor -o "$OUTPUT_FILE" "$INPUT_FILE"
5248
5349 - name : Convert HTML to GitHub-Flavored Markdown
5450 run : |
@@ -62,17 +58,11 @@ jobs:
6258 --output "$MARKDOWN_FILE" \
6359 "$HTML_FILE"
6460
65- - name : Commit files
66- run : |
67- git config --local user.email "github-actions[bot]@users.noreply.github.com"
68- git config --local user.name "github-actions[bot]"
69- git add release-notes-build/
70- git commit -m "Add changes"
71-
72- - name : Push HTML and Markdown to release-notes-build branch
73- uses : ad-m/github-push-action@v0.8.0
61+ - name : Deploy to release-notes-build branch
62+ uses : peaceiris/actions-gh-pages@v4
7463 with :
7564 github_token : ${{ secrets.GITHUB_TOKEN }}
76- branch : release-notes-build
77- force : true
78- directory : release-notes-build
65+ publish_dir : ./release-notes-build
66+ publish_branch : release-notes-build
67+ force_orphan : true
68+ commit_message : " Generate Release Notes for ${{ inputs.version }}"
You can’t perform that action at this time.
0 commit comments