Skip to content

Commit 3980b5b

Browse files
committed
Use upload dir
1 parent 647f6d7 commit 3980b5b

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/generate-release-notes.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,27 @@ jobs:
3030
- name: Install Pandoc
3131
run: sudo apt-get update && sudo apt-get install -y pandoc
3232

33+
- name: Create release notes directory
34+
run: mkdir release-notes
35+
3336
- name: Convert AsciiDoc to HTML
3437
run: |
3538
VERSION=${{ inputs.version }}
3639
INPUT_FILE="versions/${VERSION}/modules/en/pages/release-notes/${VERSION}.adoc"
37-
OUTPUT_FILE="${VERSION}.html"
40+
OUTPUT_FILE="release-notes/${VERSION}.html"
3841
3942
if [ ! -f "$INPUT_FILE" ]; then
4043
echo "Error: Input file $INPUT_FILE not found."
4144
exit 1
4245
fi
4346
4447
asciidoctor -o "$OUTPUT_FILE" "$INPUT_FILE"
45-
48+
4649
- name: Convert HTML to GitHub-Flavored Markdown
4750
run: |
4851
VERSION=${{ inputs.version }}
49-
HTML_FILE="${VERSION}.html"
50-
MARKDOWN_FILE="${VERSION}.md"
52+
HTML_FILE="release-notes/${VERSION}.html"
53+
MARKDOWN_FILE="release-notes/${VERSION}.md"
5154
5255
pandoc --from html-native_divs \
5356
--to gfm \
@@ -56,13 +59,9 @@ jobs:
5659
"$HTML_FILE"
5760
5861
- name: Push HTML and Markdown to release-notes branch
59-
uses: ad-m/github-push-action@master
62+
uses: ad-m/github-push-action@v0.8.0
6063
with:
6164
github_token: ${{ secrets.GITHUB_TOKEN }}
6265
branch: release-notes
6366
force: true
64-
tags: false
65-
files: |
66-
${{ inputs.version }}.html
67-
${{ inputs.version }}.md
68-
commit_message: 'docs: Add release notes for v${{ inputs.version }}'
67+
directory: release-notes

0 commit comments

Comments
 (0)