Add 'only' option to gitify action
This commit is contained in:
parent
21e7115ed0
commit
dedac3d930
1 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue