chore: Add tofu workflows #1
1 changed files with 2 additions and 0 deletions
|
|
@ -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" \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue