Skip to content

Commit bbed758

Browse files
authored
Merge pull request #188 from djarecka/ga/reusable_yaml
adding reusable workflow to generate yaml modles
2 parents 9cecd49 + da3d4c6 commit bbed758

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: manual-generate-yaml-model
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
model:
7+
description: 'model name'
8+
required: true
9+
type: string
10+
11+
jobs:
12+
call-reusable:
13+
uses: brain-bican/models/.github/workflows/reusable-generate_yaml_model.yaml@main
14+
with:
15+
model: ${{ github.event.inputs.model }}

.github/workflows/generate_yaml_model.yaml renamed to .github/workflows/reusable-generate_yaml_model.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
# Generates linkml yaml schema from metadata in googlesheets using schemasheets
2-
name: generating yaml file
1+
name: reusable-generate-yaml
32

43
on:
5-
workflow_dispatch:
4+
workflow_call:
65
inputs:
76
model:
87
description: 'model name'
@@ -71,5 +70,5 @@ jobs:
7170
commit-message: "Generate new version of the linkml model for ${{ inputs.model }}"
7271
branch: ${{ env.BRANCH_NAME }}
7372
title: "Auto PR: ${{ inputs.model }}.yaml generated from google spreadsheets using schemasheets"
74-
body: "This PR adds a autogenerated ${{ inputs.model }}.yaml file."
73+
body: "This PR adds an autogenerated ${{ inputs.model }}.yaml file."
7574
base: main

0 commit comments

Comments
 (0)