Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change schema to data_type for clarity #27

Merged
merged 41 commits into from
Nov 15, 2023
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
48b5e16
rename template_dir to community_dir
afwillia May 11, 2023
20ba923
Merge branch 'main' of https://github.com/afwillia/data-models
afwillia Nov 1, 2023
ee6b27a
add template create workflow
afwillia Nov 1, 2023
fe9b8d0
add )
afwillia Nov 1, 2023
37ea578
remove readr
afwillia Nov 1, 2023
9847d12
quote input env vars
afwillia Nov 1, 2023
068ae5a
clean up json output to match current config file. use base pipe oper…
afwillia Nov 2, 2023
35a90bf
name workflow and change PR title
afwillia Nov 2, 2023
8251f18
change component to schema_name
afwillia Nov 2, 2023
cebb2c2
fix filter for components and filenames
afwillia Nov 2, 2023
55af3f0
change array name to manifest_schemas to match existing format
afwillia Nov 2, 2023
2384257
Add step to validate json
afwillia Nov 2, 2023
224e770
checkout config repo side by side
afwillia Nov 2, 2023
eabf04a
don't run on psuh to main
afwillia Nov 2, 2023
901e82f
check out config-refactor branch of config repo
afwillia Nov 2, 2023
12ee4da
checkout dev branch of data_curator_config for schema
afwillia Nov 2, 2023
afecd92
Use datacurator package to create config
afwillia Nov 2, 2023
22fa756
run everything in one step
afwillia Nov 2, 2023
1df9368
use github token for install_github
afwillia Nov 2, 2023
93577e3
use github.token context
afwillia Nov 2, 2023
8994066
remove extra space
afwillia Nov 2, 2023
4326bec
use write_dca_template_config
afwillia Nov 7, 2023
6af0800
Add explanatory comments to the top
afwillia Nov 7, 2023
84c8191
Add include_schemas and exclude_schemas
afwillia Nov 9, 2023
07023c0
Create a workflow using dca-template-config-action
afwillia Nov 10, 2023
219c4f8
move workflow to github dir
afwillia Nov 10, 2023
0cda864
change name of workflow to distinguish from original
afwillia Nov 10, 2023
7fe6961
remove set up R action
afwillia Nov 10, 2023
523a1b3
use env instead of with
afwillia Nov 13, 2023
e58ffa7
use main branch
afwillia Nov 13, 2023
0517269
use data_model
afwillia Nov 13, 2023
c6d8878
give write permission
afwillia Nov 13, 2023
224c03d
checkout repo and then write config
afwillia Nov 13, 2023
75af16f
make path file
afwillia Nov 14, 2023
08c4db6
really change path to file
afwillia Nov 14, 2023
d123375
change path to file
afwillia Nov 14, 2023
3535463
Now that template github action works, just use one workflow file
afwillia Nov 14, 2023
9c5865b
add include and exclude schemas
afwillia Nov 14, 2023
77f40f3
fix typo in exclude
afwillia Nov 14, 2023
a4d84f9
instead of schema say data_type
afwillia Nov 15, 2023
d6fe5c9
merge main
afwillia Nov 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/create-template-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch
#
# The resulting file with contain one entry for each attribute in the data model that `dependsOn`
# "Component". To include a subset of these attributes, use either `include_schemas` or
# `exclude_schemas` in the call to `datacurator::write_dca_template_config()`
# "Component". To include a subset of these attributes, use either `include_data_types` or
# `exclude_data_types` in the call to `datacurator::write_dca_template_config()`
#
# --------------------------------------------------------------------------------------------------

Expand All @@ -28,13 +28,13 @@ on:
description: URL to a jsonld data model file
required: true
file:
description: Filename to save the template config
description: Directory to save the template config
required: true
include_schemas:
description: Space-separated string of schemas to include in output. Must be empty if using exclude_schemas.
include_data_types:
description: Space-separated string of data types to include in output. Must be empty if using exclude_data_types.
required: false
exclude_schemas:
description: Space-separated string of schemas to exclude from output. Must be empty if using include_schemas.
exclude_data_types:
description: Space-separated string of data types to exclude from output. Must be empty if using include_data_types.
required: false

jobs:
Expand All @@ -55,8 +55,8 @@ jobs:
env:
data_model: ${{ inputs.data_model }}
file: ${{ inputs.file }}
include_schemas: ${{ inputs.include_schemas }}
exclude_schemas: ${{ inputs.exclude_schemas }}
include_data_types: ${{ inputs.include_data_types }}
exclude_data_types: ${{ inputs.exclude_data_types }}

- name: Validate Config File
uses: docker://orrosenblatt/validate-json-action:latest
Expand Down