Skip to content

Commit

Permalink
Merge pull request #2 from OlegZharkov/OlegZharkov-patch-2
Browse files Browse the repository at this point in the history
pull-request-test
  • Loading branch information
OlegZharkov authored Feb 27, 2020
2 parents 8b61116 + debd84d commit 400ad83
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/doi-load.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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

0 comments on commit 400ad83

Please sign in to comment.