Skip to content

Commit

Permalink
Remove ExtensionTemplate.yml in template repos
Browse files Browse the repository at this point in the history
This workflows isn't needed in templates.
It can be removed when running the set_extension_name.py script.
  • Loading branch information
ttanay committed Sep 10, 2023
1 parent 529f9d7 commit ae2192b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ExtensionTemplate.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#
# NOTE: this workflow is for testing the extension template itself, this workflow should be removed in your extension
# NOTE: this workflow is for testing the extension template itself,
# this workflow will be removed when scripts/set_extension_name.py is run
#

name: Extension Template
Expand Down
3 changes: 3 additions & 0 deletions scripts/set_extension_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,6 @@ def replace_everywhere(to_find, to_replace):
os.rename(f'src/{string_to_find}_extension.cpp', f'src/{string_to_replace}_extension.cpp')
os.rename(f'src/include/{string_to_find}_extension.hpp', f'src/include/{string_to_replace}_extension.hpp')
os.rename(f'test/nodejs/{string_to_find}_test.js', f'test/nodejs/{string_to_replace}_test.js')

# remove template-specific files
os.remove('.github/workflows/ExtensionTemplate.yml')

0 comments on commit ae2192b

Please sign in to comment.