chore: Add tofu workflows #1
1 changed files with 4 additions and 2 deletions
|
|
@ -61,10 +61,12 @@ jobs:
|
|||
echo "::set-output name=comment_id::$comment_id"
|
||||
|
||||
- name: Set variables
|
||||
id: vars
|
||||
run: |
|
||||
echo "COMMENT_ID=${{ steps.fetch.outputs.comment_id }}" >> $FORGEJO_ENV
|
||||
|
||||
- name: Upsert comment
|
||||
id: comment
|
||||
env:
|
||||
COMMENT_BODY: |
|
||||
`#### OpenTofu Format and Style 🖌\`${{ steps.fmt.outcome }}\`
|
||||
|
|
@ -92,12 +94,12 @@ jobs:
|
|||
curl -s -X PATCH \
|
||||
-H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
"$FORGEJO_URL/api/v1/repos/${{ forge.repository }}/issues/comments/$COMMENT_ID" \
|
||||
"${{ forge.server_url }}/api/v1/repos/${{ forge.repository }}/issues/comments/$COMMENT_ID" \
|
||||
-d "{\"body\":\"$COMMENT_BODY\"}"
|
||||
else
|
||||
curl -s -X POST \
|
||||
-H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
"$FORGEJO_URL/api/v1/repos/${{ forge.repository }}/issues/$PR_NUMBER/comments" \
|
||||
"${{ forge.server_url }}/api/v1/repos/${{ forge.repository }}/issues/$PR_NUMBER/comments" \
|
||||
-d "{\"body\":\"$COMMENT_BODY\"}"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue