diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d4449ed28d6..a7ca1a7e4cb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/application/src/main/resources/thingsboard.yml b/application/src/main/resources/thingsboard.yml index 451377c3b0c..2852390d310 100644 --- a/application/src/main/resources/thingsboard.yml +++ b/application/src/main/resources/thingsboard.yml @@ -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" diff --git a/tools/src/main/python/check_env_variables.py b/tools/src/main/python/check_env_variables.py index f77d286f009..9484a2c2f70 100644 --- a/tools/src/main/python/check_env_variables.py +++ b/tools/src/main/python/check_env_variables.py @@ -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)