diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml index 5db547ed2..71d4b0cbe 100644 --- a/.github/workflows/documentation.yaml +++ b/.github/workflows/documentation.yaml @@ -16,6 +16,11 @@ on: paths: - src/fundus/publishers/** - scripts/generate_tables.py + types: + - ready_for_review + - opened + - reopened + - synchronize workflow_dispatch: @@ -34,6 +39,7 @@ jobs: permissions: contents: write + pull-requests: write steps: - name: Set up Git repository @@ -61,6 +67,12 @@ jobs: - name: Generate 'supported_publishers.md' run: python scripts/generate_tables.py + - name: Convert PR to draft + env: + GH_TOKEN: ${{ github. token }} + run: | + gh pr ready ${{ github.event.pull_request.number }} --undo + - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v5 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 44d475da5..9796725f3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -4,6 +4,11 @@ on: push: branches: [ master ] pull_request: + types: + - ready_for_review + - opened + - reopened + - synchronize workflow_call: jobs: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 235729297..7665745ff 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,6 +4,11 @@ on: push: branches: [ master ] pull_request: + types: + - ready_for_review + - opened + - reopened + - synchronize workflow_call: jobs: