Skip to content

Commit 03bca45

Browse files
authored
Add support for manual trigger with --force-regenerate flag in update-models workflow
- Introduced an optional `forceRegenerate` input to the `workflow_dispatch` event. - Updated the `Update Together.ai models` step to conditionally include the `--force-regenerate` flag based on the input. - Enables manual triggering of the workflow with enhanced flexibility for regenerating models.
1 parent 3d87df4 commit 03bca45

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

.github/workflows/update-models.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
- cron: '0 2 * * *'
77
# Allow manual triggering
88
workflow_dispatch:
9+
inputs:
10+
forceRegenerate:
11+
description: 'Pass --force-regenerate flag to the script'
12+
required: false
13+
default: 'false'
914

1015
jobs:
1116
update-models:
@@ -31,7 +36,11 @@ jobs:
3136
- name: Update Together.ai models and generate changes report
3237
id: update-models
3338
run: |
34-
python together_models.py --summary > model_update_report.txt
39+
if [[ "${{ github.event.inputs.forceRegenerate }}" == "true" ]]; then
40+
python together_models.py --summary --force-regenerate > model_update_report.txt
41+
else
42+
python together_models.py --summary > model_update_report.txt
43+
fi
3544
3645
# Extract specific sections for PR description
3746

blocks/public/nous-hermes-2-mixtral-8x7b-dpo-.yaml

-15
This file was deleted.

0 commit comments

Comments
 (0)