Skip to content

Commit 7504688

Browse files
committed
.github/workflows/NightlyBuildsCheck.yml
1 parent dfbc6b4 commit 7504688

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

.github/workflows/NightlyBuildsCheck.yml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -206,30 +206,13 @@ jobs:
206206
207207
git config pull.rebase false
208208
git pull origin main
209-
# git pull origin gh-pages --allow-unrelated-histories
210209
211-
mkdir -p reports
212-
# keep a report for the next run
213-
echo "---\nlayout: post\ntitle: "${{ needs.get-run-info.outputs.CURR_DATE }} - Report"\nparent: "Previous reports"\n---\n" > reports/${{ needs.get-run-info.outputs.CURR_DATE }}-report.md
210+
# add header for jekyll to apply post layout to a report
211+
echo -e "---\nlayout: post\ntitle: "${{ needs.get-run-info.outputs.CURR_DATE }} - Report"\nparent: "Reports"\n---\n" > reports/${{ needs.get-run-info.outputs.CURR_DATE }}-report.md
214212
cat ${{ needs.get-run-info.outputs.CURR_DATE }}-report.md >> reports/${{ needs.get-run-info.outputs.CURR_DATE }}-report.md
215213
216-
# copy old report from homepage to previous reports
217-
# yesterday=$(date -v-1d +"%Y-%m-%d")
218-
echo "---\nlayout: post\ntitle: "${{ needs.get-run-info.outputs.CURR_DATE }} - Report"\nparent: "Previous reports"\n---\n" > docs/${{ needs.get-run-info.outputs.CURR_DATE }}-report.md
219-
cat ${{ needs.get-run-info.outputs.CURR_DATE }}-report.md >> docs/${{ needs.get-run-info.outputs.CURR_DATE }}-report.md
220-
221-
# # put current report into a homepage
222-
# echo "---\nlayout: home\ntitle: "${{ needs.get-run-info.outputs.CURR_DATE }} - Report"\permalink: "/"\n---\n" > docs/${{ needs.get-run-info.outputs.CURR_DATE }}-report.md
223-
# cat ${{ needs.get-run-info.outputs.CURR_DATE }}-report.md >> docs/${{ needs.get-run-info.outputs.CURR_DATE }}-report.md
224-
225-
226-
# mv ${{ needs.get-run-info.outputs.CURR_DATE }}-report.md docs
227214
ls -lah docs
228215
229216
git add docs/${{ needs.get-run-info.outputs.CURR_DATE }}-report.md
230-
git add reports/${{ needs.get-run-info.outputs.CURR_DATE }}-report.md
231-
232217
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
233218
git push origin main
234-
235-
# git push origin main:gh-pages

0 commit comments

Comments
 (0)