Skip to content

Commit b9064ea

Browse files
authored
Add inputs and secrets to workflow_call in YAML
1 parent 9eb32e6 commit b9064ea

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/create_prompts_and_upload.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
name: Process Phenopackets and Upload to Zenodo
22

33
on:
4-
workflow_call: {} # Allow calling from another workflow
5-
4+
workflow_call: # Allow calling from another workflow
5+
inputs:
6+
LATEST_STORE:
7+
required: true
8+
type: string
9+
LATEST_HPO:
10+
required: true
11+
type: string
12+
secrets:
13+
ZENODO_ACCESS_TOKEN:
14+
required: true
15+
ZENODO_DEPOSITION_ID:
16+
required: true
617
jobs:
718
process-phenopackets:
819
runs-on: ubuntu-latest
@@ -55,7 +66,7 @@ jobs:
5566
env:
5667
ZENODO_ACCESS_TOKEN: ${{ secrets.ZENODO_ACCESS_TOKEN }}
5768
ZENODO_DEPOSITION_ID: ${{ secrets.ZENODO_DEPOSITION_ID }}
58-
LATEST_STORE_TAG: ${{ inputs. LATEST_STORE }}
69+
LATEST_STORE_TAG: ${{ inputs.LATEST_STORE }}
5970
LATEST_HPO_TAG: ${{ inputs.LATEST_HPO }}
6071
run: python scripts/update_and_release_to_zenodo.py prompts/
6172

0 commit comments

Comments
 (0)