* [Issue-Labeler] Configure labeler-train.yml Configure the issue-labeler training workflow. - Imported the workflow template - Removed inputs, jobs, and conditions related to pull requests, as we will only use the labeler for issues in this repository * [Issue-Labeler] Configure labeler-promote.yml Configure the issue-labeler promotion workflow. - Imported the workflow template - Removed input and job for pull requests, as we will only use the labeler for issues in this repository * [Issue-Labeler] Configure labeler-predict-issues.yml Configure the issue-labeler issue prediction workflow. - Imported the workflow template - Removed the excluded_authors input * [Issue-Labeler] Configure labeler-cache-retention.yml Configure the issue-labeler cache retention workflow. - Imported the workflow template - Removed config related to pull requests, as we will only use the labeler for issues in this repository * [Issue-Labeler] Add labeler onboarding/configuration doc * Bump superlinter to v7 (via SHA) to get type:number support in GitHub workflows * Address CHECKOV lint errors in GitHub workflows * Ignore GitHub workflow files from prettier * Explicitly set workflow permissions * Comment that UTC is used for cron schedule
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
# Workflow template imported from:
|
|
# https://github.com/dotnet/.github/workflow-templates
|
|
#
|
|
# Promote a model from staging to 'ACTIVE', backing up the currently 'ACTIVE' model
|
|
name: "Labeler: Promotion"
|
|
|
|
on:
|
|
# Dispatched via the Actions UI, promotes the model from a staged slot into the active prediction environment
|
|
workflow_dispatch:
|
|
inputs:
|
|
issues:
|
|
description: "Issues: Promote Model"
|
|
type: boolean
|
|
required: true
|
|
staged_key:
|
|
description: "The cache key suffix to use for promoting a staged model to 'ACTIVE'. Defaults to 'staged'."
|
|
required: true
|
|
default: "staged"
|
|
backup_key:
|
|
description: "The cache key suffix to use for backing up the currently active model. Defaults to 'backup'."
|
|
default: "backup"
|
|
|
|
permissions:
|
|
actions: write
|
|
|
|
jobs:
|
|
promote-issues:
|
|
if: ${{ inputs.issues }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: "Promote Model for Issues"
|
|
uses: dotnet/issue-labeler/promote@46125e85e6a568dc712f358c39f35317366f5eed # v2.0.0
|
|
with:
|
|
type: "issues"
|
|
staged_key: ${{ inputs.staged_key }}
|
|
backup_key: ${{ inputs.backup_key }}
|