Skip to content

[WIP] Only test non-draft pull requests using Mill github actions, test other using contributor's github actions #28

[WIP] Only test non-draft pull requests using Mill github actions, test other using contributor's github actions

[WIP] Only test non-draft pull requests using Mill github actions, test other using contributor's github actions #28

Workflow file for this run

name: Draft Status
permissions: write-all
on:
pull_request_target:
jobs:
set_status:

Check failure on line 8 in .github/workflows/draft-status.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/draft-status.yml

Invalid workflow file

You have an error in your yaml syntax on line 8
if: 'github.event.pull_request.draft == true && github.event.type != 'ready_to_review'"
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Get PR source repository URL
run:
echo "${{ github.event.pull_request.head.repo.html_url }}/commits/${{github.event.pull_request.head.ref}}"
- name: Create status
run: |
curl --request POST \
--url ${{ github.event.pull_request.statuses_url }} \
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
--header 'content-type: application/json' \
--data '{
"state": "pending",
"context": "Link to Fork CI",
"target_url": "${{ github.event.pull_request.head.repo.html_url }}/commits/${{github.event.pull_request.head.ref}}"
}' \
--fail-with-body