Skip to content

Commit 39e9d9d

Browse files
committed
Add comment to action commit instead of original commit.
1 parent 531cc53 commit 39e9d9d

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/conditional_convert_via_pandoc.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,15 @@ jobs:
7171
export COMMIT=$(git rev-parse HEAD)
7272
git push -f origin ${GITHUB_REF##*/}
7373
curl https://phyphox.org/expdb/pandocdone.php?commit=$COMMIT &> /dev/null
74+
jq -nc "{\"body\": \"Hugo output should be available at https://phyphox.org/expdb/$COMMIT/public\"}" | \
75+
curl -sL -X POST -d @- \
76+
-H "Content-Type: application/json" \
77+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
78+
"https://api.github.com/repos/$GITHUB_REPOSITORY/commits/$COMMIT/comments"
7479
# - name: Save artifacts # Instead of 'Commit files'. Saves the files as .zip
7580
# uses: actions/upload-artifact@v4
7681
# with:
7782
# name: pandoc-artifact
7883
# 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
84+
8385

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)