27 lines
909 B
YAML
27 lines
909 B
YAML
on: [pull_request]
|
|
jobs:
|
|
build:
|
|
runs-on: docker
|
|
container:
|
|
image: git.php.fail/lubiana/container/php:ci
|
|
steps:
|
|
- name: Manually checkout
|
|
env:
|
|
REPO: '${{ github.repository }}'
|
|
TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
|
GIT_SERVER: 'hannover.ccc.de/gitlab'
|
|
run: |
|
|
git clone --branch $GITHUB_HEAD_REF https://${TOKEN}@${GIT_SERVER}/${REPO}.git .
|
|
git fetch
|
|
git checkout $GITHUB_HEAD_REF
|
|
- name: lol
|
|
run: |
|
|
ls -l
|
|
pwd
|
|
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"
|