Add 'only' option to gitify action

This commit is contained in:
Emmanuel 2025-01-10 22:54:34 +01:00
parent 21e7115ed0
commit dedac3d930

View file

@ -2,9 +2,13 @@ on:
workflow_dispatch:
inputs:
force:
description: Force regeneration of every consolidated texts
description: Force regeneration of consolidated texts
required: false
type: boolean
only:
description: ID of single consolidated text to export to git
required: false
type: string
jobs:
consolidated_texts_to_git:
@ -56,4 +60,7 @@ jobs:
- name: Generate git repositories of consolidated texts
run: |
set -x
npx tsx src/scripts/export_consolidated_texts_to_git.ts consolidated_texts ${{ inputs.force == 'true' && '--force' || '' }} --push
npx tsx src/scripts/export_consolidated_texts_to_git.ts consolidated_texts \
${{ inputs.force == 'true' && '--force' || '' }} \
${{ inputs.only != '' && format('--only {0}', inputs.only) || '' }} \\
--push