Skip to content

Commit 1b9697b

Browse files
authored
Merge pull request #4 from DevOps-and-Cloud-based-Software/1-reorganize-redmemd
Get PDF name from README title
2 parents 49b3066 + 957ce70 commit 1b9697b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/markdown2pdf.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,17 @@ jobs:
3737
with:
3838
sources: 'README_WITH_LINKS.md'
3939

40+
- name: Get PDF name from README title
41+
id: get-pdf-name
42+
run: |
43+
title=$(head -1 README.md)
44+
echo "pdf_name=$name" >> $GITHUB_OUTPUT
45+
4046
- name: Upload Document
4147
uses: actions/upload-artifact@v4
4248
id: upload-document
4349
with:
44-
name: 'lab_assignment.pdf'
50+
name: ${{ steps.get-pdf-name.outputs.pdf_name }}
4551
path: ${{ steps.publish-document.outputs.pdf }}
4652

4753
- name: Upload README_WITH_LINKS.md

0 commit comments

Comments
 (0)