Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
16 changes: 10 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
name: CI
name: yml_parameters_have_description
on:
pull_request:
paths:
- 'application/src/main/resources/thingsboard.yml'
jobs:
build:
runs-on: ubuntu-latest
name: yml_parameters_have_description
runs-on: ubuntu-20.04

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: 3.10
python-version: "3.10.2"
architecture: "x64"
env:
AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache

- name: Run Verification Script
run: tools/src/main/python/check_env_variables.py
run: python3 tools/src/main/python/check_env_variables.py
3 changes: 3 additions & 0 deletions application/src/main/resources/thingsboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1204,3 +1204,6 @@ management:
exposure:
# Expose metrics endpoint (use value 'prometheus' to enable prometheus metrics).
include: '${METRICS_ENDPOINTS_EXPOSE:info}'

new: "true"
new2: "true"
2 changes: 1 addition & 1 deletion tools/src/main/python/check_env_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def check_descriptions(properties):
if __name__ == '__main__':
sys. setrecursionlimit(10000)
# Provide the path to the input YAML file and the output HTML file
input_yaml_file = "../../../../application/src/main/resources/thingsboard.yml"
input_yaml_file = "application/src/main/resources/thingsboard.yml"

properties = extract_properties_with_comments(input_yaml_file)

Expand Down