generated from yxtay/python-project-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
buehlere
committed
Feb 21, 2024
1 parent
373797a
commit c5665bf
Showing
2 changed files
with
9 additions
and
7 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,20 +18,21 @@ jobs: | |
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Check for changes | ||
id: git_changes | ||
run: echo "HAS_CHANGES=$(if git diff --quiet; then echo 'false'; else echo 'true'; fi)" >> $GITHUB_ENV | ||
# Debug output | ||
- name: Debug HAS_CHANGES | ||
run: echo $HAS_CHANGES | ||
|
||
|
||
- name: Document CLI and write to folder | ||
if: env.HAS_CHANGES == 'true' | ||
run: | | ||
make deps-install | ||
poetry run typer postprocessing_variant_calls.main utils docs > docs/CLI.md | ||
rm docs/README.md | ||
cp README.md docs/README.md | ||
- name: Check for changes | ||
id: git_changes | ||
run: echo "HAS_CHANGES=$(if git diff --quiet; then echo 'false'; else echo 'true'; fi)" >> $GITHUB_ENV | ||
- name: Debug HAS_CHANGES | ||
run: echo $HAS_CHANGES | ||
- name: Push Changes | ||
run: | | ||
git config --global user.name 'buehlere' | ||
git config --global user.email '[email protected]' | ||
git add ./docs | ||
|
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 |
---|---|---|
|
@@ -44,3 +44,4 @@ To access the environment after initial setup up run: | |
```bash | ||
poetry shell | ||
``` | ||
changes |