Skip to content

Commit

Permalink
Move scripts to .src
Browse files Browse the repository at this point in the history
  • Loading branch information
jatonline committed Feb 1, 2025
1 parent 56d8a3e commit 5231560
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r .src/requirements.txt
- name: Update README
run: |-
python build_readme.py
python .src/build_readme.py
cat README.md
- name: Commit and push if README changed
run: |-
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r .src/requirements.txt
- name: Send adaptive card notification to MS Teams
env:
TEAMS_WEBHOOK_URL: ${{ secrets.TEAMS_WEBHOOK_URL }}
run: |-
python notify_teams.py ${{ github.event.before }} ${{ github.event.after }}
python .src/notify_teams.py ${{ github.event.before }} ${{ github.event.after }}
2 changes: 1 addition & 1 deletion build_readme.py → .src/build_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def get_bookmark(topic: tuple[str]) -> str:


if __name__ == "__main__":
repo_path = Path(__file__).parent.resolve()
repo_path = Path(__file__).parent.parent.resolve()
times = get_created_times(repo_path)
by_topic = get_by_topic(repo_path, times)
toc = render_toc(by_topic)
Expand Down
2 changes: 1 addition & 1 deletion notify_teams.py → .src/notify_teams.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def deslugify(slug: str) -> str:

if __name__ == "__main__":
added_files = get_added_files(
repo_path=Path(__file__).parent, commit1=sys.argv[1], commit2=sys.argv[2]
repo_path=Path(__file__).parent.parent, commit1=sys.argv[1], commit2=sys.argv[2]
)
if added_files:
payload = prepare_json(
Expand Down
File renamed without changes.

0 comments on commit 5231560

Please sign in to comment.