-
Notifications
You must be signed in to change notification settings - Fork 5
/
action.yml
66 lines (56 loc) · 2.05 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Acryl Business Glossary Sync
description: Update your business glossary yaml files with changes from DataHub.
inputs:
datahub_gms_host:
description: "DataHub GMS host."
required: true
datahub_gms_token:
description: "DataHub GMS token."
required: false
business_glossary_file:
description: "Path to the business glossary yaml file."
required: true
enable_auto_id:
description: "Set to true if you use `enable_auto_id` in your business glossary ingestion."
default: "false"
prune:
description: "Set to true if you want to use only glossraies from file and not the use from server"
default: "false"
debug_mode:
description: "Set to true to enable debug mode."
default: "false"
runs:
using: "composite"
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Sync business glossary
shell: bash
run: |
set -x
pip install -r ${{ github.action_path }}/requirements.txt
python ${{ github.action_path }}/glossary-sync.py \
update-glossary-file \
--enable-auto-id ${{ inputs.enable_auto_id }} \
--file ${{ inputs.business_glossary_file }} \
--prune ${{ inputs.prune }}
git status
env:
DATAHUB_GMS_HOST: ${{ inputs.datahub_gms_host }}
DATAHUB_GMS_TOKEN: ${{ inputs.datahub_gms_token }}
DEBUG_MODE: ${{ inputs.debug_mode }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
branch: acryl-business-glossary-sync
commit-message: "[automated] Update business glossary at ${{ inputs.business_glossary_file }}"
title: Update business glossary
body: |
Updates the business glossary at ${{ inputs.business_glossary_file }} with changes from Acryl DataHub.
Automated changes by [acryldata/business-glossary-sync-action](https://github.com/acryldata/business-glossary-sync-action).
branding:
icon: "activity"
color: "green"