chore: Add tofu workflows #1

Merged
Peter merged 82 commits from pgi-add-workflows into main 2026-02-18 22:55:53 +01:00
Showing only changes of commit 5ca4ca9243 - Show all commits

View file

@ -89,12 +89,14 @@ jobs:
if [ -n "${comment_id}" ] && [ "${comment_id}" != "null" ]; then if [ -n "${comment_id}" ] && [ "${comment_id}" != "null" ]; then
echo "Found comment, updating..." && \
curl -s -X PATCH \ curl -s -X PATCH \
-H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \ -H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
"${{ forge.api_url }}/repos/${{ forge.repository }}/issues/comments/${{ steps.fetch.outputs.comment_id }}" \ "${{ forge.api_url }}/repos/${{ forge.repository }}/issues/comments/${{ steps.fetch.outputs.comment_id }}" \
-d "$payload" -d "$payload"
else else
echo "Creating new comment..." && \
curl -s -X POST \ curl -s -X POST \
-H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \ -H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \