Skip to content

Commit

Permalink
Generate date on release
Browse files Browse the repository at this point in the history
  • Loading branch information
maldins46 committed Feb 17, 2021
1 parent 4da9f26 commit e1a0c83
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/prereleases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,24 @@ jobs:
release_name: ${{ env.RELEASE_VERSION }}
prerelease: true

- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%d-%m-%Y')"

- name: Generate PPS report
uses: docker://pandoc/latex:2.11.4
with:
args: -d ./src/markdown/pps-report/pps-latex-default.yml -o report/PPSReport-${{ env.RELEASE_VERSION }}.pdf
args: -d ./src/markdown/pps-report/pps-latex-default.yml -o report/PPSReport-${{ env.RELEASE_VERSION }}.pdf -M date:${{steps.date.outputs.date}}

- name: Generate LSS report
uses: docker://pandoc/latex:2.11.4
with:
args: -d ./src/markdown/lss-report/lss-latex-default.yml -o report/LSSReport-${{ env.RELEASE_VERSION }}.pdf
args: -d ./src/markdown/lss-report/lss-latex-default.yml -o report/LSSReport-${{ env.RELEASE_VERSION }}.pdf -M date:${{steps.date.outputs.date}}

- name: Generate appendix documents
uses: docker://pandoc/latex:2.11.4
with:
args: -d ./src/markdown/appendix/appendix-latex-default.yml -o report/Appendix-${{ env.RELEASE_VERSION }}.pdf
args: -d ./src/markdown/appendix/appendix-latex-default.yml -o report/Appendix-${{ env.RELEASE_VERSION }}.pdf -M date:${{steps.date.outputs.date}}

- name: Upload release assets
uses: dwenegar/upload-release-assets@v1
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,20 +84,24 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%d-%m-%Y')"

- name: Generate PPS report
uses: docker://pandoc/latex:2.11.4
with:
args: -d ./src/markdown/pps-report/pps-latex-default.yml -o report/PPSReport-${{ env.RELEASE_VERSION }}.pdf
args: -d ./src/markdown/pps-report/pps-latex-default.yml -o report/PPSReport-${{ env.RELEASE_VERSION }}.pdf -M date:${{steps.date.outputs.date}}

- name: Generate LSS report
uses: docker://pandoc/latex:2.11.4
with:
args: -d ./src/markdown/lss-report/lss-latex-default.yml -o report/LSSReport-${{ env.RELEASE_VERSION }}.pdf
args: -d ./src/markdown/lss-report/lss-latex-default.yml -o report/LSSReport-${{ env.RELEASE_VERSION }}.pdf -M date:${{steps.date.outputs.date}}

- name: Generate appendix documents
uses: docker://pandoc/latex:2.11.4
with:
args: -d ./src/markdown/appendix/appendix-latex-default.yml -o report/Appendix-${{ env.RELEASE_VERSION }}.pdf
args: -d ./src/markdown/appendix/appendix-latex-default.yml -o report/Appendix-${{ env.RELEASE_VERSION }}.pdf -M date:${{steps.date.outputs.date}}

- name: Upload release assets
uses: dwenegar/upload-release-assets@v1
Expand Down
1 change: 0 additions & 1 deletion src/markdown/appendix/appendix-latex-default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ metadata:
title: ScalaQuest
subtitle: Appendix Documents
lang: it-IT
date: 20 Febbraio 2021
1 change: 0 additions & 1 deletion src/markdown/lss-report/lss-latex-default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ metadata:
title: ScalaQuest LSS Report
subtitle: ScalaQuest
lang: it-IT
date: 20 Febbraio 2021
1 change: 0 additions & 1 deletion src/markdown/pps-report/pps-latex-default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ metadata:
title: ScalaQuest
subtitle: PPS Report
lang: it-IT
date: 20 Febbraio 2021

0 comments on commit e1a0c83

Please sign in to comment.