Skip to content

Create test6.md

Create test6.md #7

name: Draft PR Created
on:
pull_request:
types: [opened]
branches:
- main
jobs:
handle-draft-pr:
if: github.event.pull_request.draft == true
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: setup
uses: actions/setup-python@v4
with:
python-version: '3.10' # install python version
- name: install packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Handle Draft PR
run: python scripts/handle_draft_pr.py
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
REPO: ${{ github.repository }}