-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: correcting regex for formatting string #51 * ci: add cron.yml --------- Co-authored-by: Xyphuz <38447974+wst24365888@users.noreply.github.com>
- Loading branch information
1 parent
0ffcc16
commit 36d18a6
Showing
6 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: CRON | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
#renew git submodule | ||
update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: update compose-spec submodule | ||
run: | | ||
git submodule update --init --recursive | ||
git submodule update --remote --recursive | ||
- name: Commit changes | ||
run: | | ||
git commit -am "Update submodules" || echo "No changes to commit" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
def revise_naming_convention(): | ||
name_mapping = { | ||
"EnvFile1": "EnvFilePath", | ||
"Volume1": "AdditionalVolumeOption", | ||
"External": "ExternalVolumeNetwork", | ||
"External1": "ExternalConfig", | ||
} | ||
|
||
with open("./compose_viz/spec/compose_spec.py", "r") as spec_file: | ||
spec_content = spec_file.read() | ||
|
||
for origin_name, new_name in name_mapping.items(): | ||
spec_content.replace(origin_name, new_name) | ||
|
||
return | ||
|
||
|
||
if __name__ == "__main__": | ||
revise_naming_convention() | ||
print("Revised naming convention successfully!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters