diff --git a/.github/workflows/labeler-predict-discussions.yml b/.github/workflows/labeler-predict-discussions.yml index 8be58d4..1db497f 100644 --- a/.github/workflows/labeler-predict-discussions.yml +++ b/.github/workflows/labeler-predict-discussions.yml @@ -15,7 +15,8 @@ on: dry_run: description: "Run in dry-run mode for manual dispatches. Defaults to 'true'." required: false - default: "true" + type: boolean + default: false cache_key: description: "The cache key suffix to use for restoring the model. Defaults to 'ACTIVE'." required: true diff --git a/.github/workflows/labeler-predict-issues.yml b/.github/workflows/labeler-predict-issues.yml index 21eb1ee..fe859e4 100644 --- a/.github/workflows/labeler-predict-issues.yml +++ b/.github/workflows/labeler-predict-issues.yml @@ -15,7 +15,8 @@ on: dry_run: description: "Run in dry-run mode for manual dispatches. Defaults to 'true'." required: false - default: "true" + type: boolean + default: false cache_key: description: "The cache key suffix to use for restoring the model. Defaults to 'ACTIVE'." required: true diff --git a/.github/workflows/labeler-predict-pulls.yml b/.github/workflows/labeler-predict-pulls.yml index bb5a9f6..0155d44 100644 --- a/.github/workflows/labeler-predict-pulls.yml +++ b/.github/workflows/labeler-predict-pulls.yml @@ -21,6 +21,11 @@ on: pulls: description: "Pull Request Numbers (comma-separated list of ranges)." required: true + dry_run: + description: "Run in dry-run mode for manual dispatches. Defaults to 'true'." + required: false + type: boolean + default: false cache_key: description: "The cache key suffix to use for restoring the model. Defaults to 'ACTIVE'." required: true @@ -59,6 +64,7 @@ jobs: label_prefix: ${{ env.LABEL_PREFIX }} threshold: ${{ env.THRESHOLD }} default_label: ${{ env.DEFAULT_LABEL }} + dry_run: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run || 'false' }} env: GITHUB_TOKEN: ${{ github.token }} continue-on-error: ${{ !env.ALLOW_FAILURE }}