Skip to content

Commit

Permalink
change scripts path
Browse files Browse the repository at this point in the history
  • Loading branch information
PaPerseller committed Mar 13, 2024
1 parent d7c00f4 commit 3cbe91f
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/update-cnip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ jobs:

- name: generate rules
run: |
python scripts/generate.py
python scripts/PAC_build.py
for script in ./scripts/generate/*.py; do
python "$script" &
done
- name: Commit file
run: |
Expand Down
2 changes: 1 addition & 1 deletion scripts/PAC_build.py → scripts/generate/PAC_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def fetch_and_convert(src):
def main():
now = datetime.utcnow()
date = now.strftime("%Y%m%d")
with open("./scripts/code.js", "r") as f:
with open("./scripts/generate/code.js", "r") as f:
code = f.read()
code = code.replace("@@TIME@@", now.isoformat()[:-7])

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3cbe91f

Please sign in to comment.