* [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
|
|
#
|
|
# Regularly restore the prediction model from cache to prevent cache eviction
|
|
name: "Labeler: Cache Retention"
|
|
|
|
# For more information about GitHub's action cache limits and eviction policy, see:
|
|
# https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "24 12 * * *" # 12:24 UTC every day (arbitrary time daily)
|
|
|
|
workflow_dispatch:
|
|
inputs:
|
|
cache_key:
|
|
description: "The cache key suffix to use for restoring the model from cache. Defaults to 'ACTIVE'."
|
|
required: true
|
|
default: "ACTIVE"
|
|
|
|
env:
|
|
CACHE_KEY: ${{ inputs.cache_key || 'ACTIVE' }}
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
restore-cache:
|
|
# Do not automatically run the workflow on forks outside the 'dotnet' org
|
|
if: ${{ github.event_name == 'workflow_dispatch' || github.repository_owner == 'dotnet' }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: dotnet/issue-labeler/restore@46125e85e6a568dc712f358c39f35317366f5eed # v2.0.0
|
|
with:
|
|
type: "issues"
|
|
cache_key: ${{ env.CACHE_KEY }}
|
|
fail-on-cache-miss: true
|