Skip to content

Commit bb0cfb1

Browse files
committed
ci: automatically update 3rd-party-licenses.md on license check step
1 parent 70ddaae commit bb0cfb1

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/check_licenses.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,10 @@ jobs:
1717

1818
- name: Check third party licenses
1919
run: cmake --workflow --preset workflow-ci-license-check-unix
20+
21+
- uses: EndBug/add-and-commit@v10
22+
id: commit
23+
with:
24+
author_name: License Check Robot
25+
author_email: bot@github.com
26+
message: 'chore: automatic third party licenses update'

aide/dependencies/CMakeLists.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ string(LENGTH ${markdown_content} markdown_length)
112112
math(EXPR markdown_substring "${markdown_length} - 2")
113113
string(SUBSTRING ${markdown_content} 0 ${markdown_substring} markdown_content)
114114

115-
configure_file(licenses.hml.in licenses.html @ONLY)
116-
configure_file(
117-
licenses.md.in ${CMAKE_CURRENT_LIST_DIR}/../../3rd-party-licenses.md @ONLY
118-
)
115+
if(AIDE_CHECK_LICENSES_AVAILABILITY)
116+
configure_file(licenses.hml.in licenses.html @ONLY)
117+
configure_file(
118+
licenses.md.in ${CMAKE_CURRENT_LIST_DIR}/../../3rd-party-licenses.md @ONLY
119+
)
120+
endif()

0 commit comments

Comments
 (0)