-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More solid cloning / exit code 0 on no changes (#1)
- Loading branch information
1 parent
b096cea
commit 6b5f989
Showing
5 changed files
with
44 additions
and
14 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 |
---|---|---|
|
@@ -20,6 +20,7 @@ jobs: | |
python-version: 3.8 | ||
- name: Create bash file for cloning | ||
run: | | ||
mkdir cache | ||
python -m pip install pyyaml | ||
python parser.py repositories.yaml clonerepos.sh | ||
chmod +x clonerepos.sh | ||
|
@@ -28,10 +29,12 @@ jobs: | |
- name: Run indexer | ||
run: python indexer.py repositories.yaml | ||
- name: Commit files | ||
continue-on-error: true # No changes = Failure | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Indexer" | ||
git add index/*.json | ||
cd index | ||
git add . | ||
git commit -m "Index update" | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
|
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 |
---|---|---|
|
@@ -127,3 +127,6 @@ dmypy.json | |
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
clonerepos.sh | ||
cache/ |
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
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