Skip to content

Commit c5bcec0

Browse files
committed
Add URL to auto-generated hugo page as comment to the commit.
1 parent 8c9393a commit c5bcec0

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/conditional_convert_via_pandoc.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
if: needs.condition_check_files.outputs.bool_files_changed == 'true'
4848
env:
4949
list_changed_files: ${{ needs.condition_check_files.outputs.list_changed_files }}
50+
COMMIT: ""
5051
steps:
5152
- uses: actions/checkout@v4 # In order to find the script pandoc.sh
5253
with:
@@ -67,11 +68,16 @@ jobs:
6768
git config --local user.name "GH_Action_Bot"
6869
git add ./content
6970
git commit -m "GH Action: Pandoc | New output for changed files"
70-
COMMIT=$(git rev-parse HEAD)
71+
export COMMIT=$(git rev-parse HEAD)
7172
git push -f origin ${GITHUB_REF##*/}
7273
curl https://phyphox.org/expdb/pandocdone.php?commit=$COMMIT &> /dev/null
7374
# - name: Save artifacts # Instead of 'Commit files'. Saves the files as .zip
7475
# uses: actions/upload-artifact@v4
7576
# with:
7677
# name: pandoc-artifact
7778
# path: content/
79+
- name: Add URL as comment
80+
uses: peter-evans/commit-comment@v3
81+
with:
82+
body: Hugo output should be available at https://phyphox.org/expdb/$COMMIT/public
83+

content/de/instructions/inelastischer-stoss/inelastischer-stoss.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
translationKey: "Inelastic Collision Instruction"
33
title: "(In)elastischer Stoß"
44
date: 2024-12-17T11:42:40+01:00

content/en/instructions/inelastic-collision/inelastic-collision.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
translationKey: "Inelastic Collision Instruction"
33
title: "(In)elastic Collision"
44
date: 2024-12-17T11:42:40+01:00

0 commit comments

Comments
 (0)