diff --git a/.github/workflows/assign_pr_to_project.yml b/.github/workflows/assign_pr_to_project.yml index e61d281c..16f2dfdc 100644 --- a/.github/workflows/assign_pr_to_project.yml +++ b/.github/workflows/assign_pr_to_project.yml @@ -9,8 +9,8 @@ on: project_id: type: string description: "Github Project Number" - required: true - default: "16" + required: false + default: "" pull_request: types: - opened @@ -40,7 +40,7 @@ jobs: uses: ynput/ops-repo-automation/.github/workflows/pr_to_project.yml@main with: repo: "${{ github.repository }}" - project_id: ${{ inputs.project_id != '' && fromJSON(inputs.project_id) || 16 }} + project_id: ${{ inputs.project_id }} pull_request_number: ${{ github.event.pull_request.number || fromJSON(inputs.pr_number) }} secrets: # INFO fallback to default `github.token` is required for PRs from forks