Skip to content

[TEST] Push CI jobs for draft PRs to PR author's personal forks of Mill #27

[TEST] Push CI jobs for draft PRs to PR author's personal forks of Mill

[TEST] Push CI jobs for draft PRs to PR author's personal forks of Mill #27

Workflow file for this run

name: Draft CI
permissions: write-all
on:
pull_request_target:
types:
- opened
- reopened
- synchronize
- ready_for_review
jobs:
run:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Debug Echos
run: |
echo ${{ github.event.action }}
echo ${{ github.event.action == 'ready_for_review' }}
echo "${{ github.event.pull_request.head.repo.html_url }}/commits/${{github.event.pull_request.head.ref}}"
- name: Create status
run: |

Check failure on line 23 in .github/workflows/draft-ci.yml

View workflow run for this annotation

GitHub Actions / Draft CI

Invalid workflow file

The workflow is not valid. .github/workflows/draft-ci.yml (Line: 23, Col: 14): Unexpected symbol: 'github'. Located at position 106 within expression: (github.event.action == 'ready_for_review' || github.event.pull_request.draft == false) && null github.event.pull_request.head.repo.html_url + '/commits/' + github.event.pull_request.head.ref
curl --request POST \
--url ${{ github.event.pull_request.statuses_url }} \
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
--header 'content-type: application/json' \
--data '{
"state": "${{
(github.event.action == 'ready_for_review' || github.event.pull_request.draft == false)
&& 'success'
|| 'pending'
}}",
"context": "Draft CI / link",
"target_url": '${{
(github.event.action == 'ready_for_review' || github.event.pull_request.draft == false)
&& null
github.event.pull_request.head.repo.html_url + '/commits/' + github.event.pull_request.head.ref
}}',
"description": "${{
(github.event.action == 'ready_for_review' || github.event.pull_request.draft == false)
&& 'PR is ready for review, running CI in Mill repo'
|| 'use CI on your repo fork (link on right) until this PR is ready for review'
}}"
}' \
--fail-with-body