20 lines
654 B
YAML
20 lines
654 B
YAML
on: [pull_request]
|
|
jobs:
|
|
build:
|
|
env:
|
|
RUNNER_TOOL_CACHE: /toolcache
|
|
runs-on: docker
|
|
steps:
|
|
- run: ls -l /
|
|
- run: ls -l /opt
|
|
- run: echo 'lol' >> /opt/hostedtoolcache/omg.txt
|
|
- run: cat /opt/hostedtoolcache/omg.txt
|
|
- 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"
|