lubitest/.forgejo/workflows/demo.yml

21 lines
654 B
YAML
Raw Normal View History

2024-09-17 16:48:56 +00:00
on: [pull_request]
2023-10-07 17:39:18 +00:00
jobs:
2024-06-10 18:55:49 +00:00
build:
env:
RUNNER_TOOL_CACHE: /toolcache
2024-02-16 19:48:06 +00:00
runs-on: docker
2023-10-07 17:39:18 +00:00
steps:
2024-06-10 18:55:49 +00:00
- run: ls -l /
2024-06-10 18:57:01 +00:00
- run: ls -l /opt
2024-06-10 18:58:34 +00:00
- run: echo 'lol' >> /opt/hostedtoolcache/omg.txt
- run: cat /opt/hostedtoolcache/omg.txt
2024-09-17 16:48:56 +00:00
- name: lol
run: |
output=$(cat ./output.txt)
echo $output
curl -vvv -X POST \
-H "Authorization: token ${GITHUB_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"body": "$output"}' \
"${{ env.GITHUB_SERVER_URL }}/api/v1/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments"