-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from OlegZharkov/OlegZharkov-patch-2
pull-request-test
- Loading branch information
Showing
1 changed file
with
11 additions
and
6 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 |
---|---|---|
|
@@ -13,6 +13,7 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: geertvdc/setup-hub@master | ||
- name: spread doi among sources | ||
env: | ||
GITHUB_USER: ${{ secrets.GITHUB_USER }} | ||
|
@@ -28,11 +29,15 @@ jobs: | |
pwd | ||
cd scripts/doi-collector | ||
python3 doi_collector.py $GITHUB_WORKSPACE/data/ | ||
echo "configuring user email" | ||
cd ../../data | ||
git config --local user.email "[email protected]" | ||
echo "configuring user name" | ||
git config --local user.name "Tools Platform Ecosystem bot" | ||
echo "commit" | ||
git commit -a -m "spread doi amongs sources" | ||
echo "push" | ||
git push origin master | ||
git add . | ||
if git commit -m "spread dois on $(date)"; then | ||
git checkout -b doi_update${{ github.run_id }} | ||
git push --set-upstream origin "doi_update${{ github.run_id }}" | ||
hub pull-request -m "spread dois on $(date)" | ||
echo "successfully created new data" | ||
else | ||
echo "nothing new to add, exiting" | ||
fi |