Skip to content

Commit

Permalink
add push action
Browse files Browse the repository at this point in the history
  • Loading branch information
KKulma committed Mar 23, 2021
1 parent aad6b26 commit 81194ea
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: append daily CI data
name: Deploy to shinyapps.io

on: push
jobs:
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,14 @@ jobs:
- name: Update data
run: |
bash ./data-raw/update-data.sh
- name: Commit files
run: |
git config --global user.name 'Kasia'
git config --global user.email '[email protected]'
git add data/*
git commit -m "Auto update of the daily data"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
11 changes: 0 additions & 11 deletions data-raw/update-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,3 @@
Rscript -e "source('data-raw/update-data.R')"


if [[ "$(git status --porcelain)" != "" ]]; then
git config --global user.name 'Kasia'
git config --global user.email '[email protected]'
git add data/*
git commit -m "Auto update of the daily data"
git push origin main
else
echo "Nothing to commit..."
fi


0 comments on commit 81194ea

Please sign in to comment.