Skip to content

Commit

Permalink
Force git push for actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Schalk van heerden committed Apr 28, 2021
1 parent f35b02d commit f8bfa83
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/realtime_rt_action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
git add data/calc/*.csv
if [[ "$(git status --porcelain)" != "" ]]; then
git commit -m "Rt model 1 action run" -a
git push origin master
git push origin master --force
fi
#- name: Run Jupyter Notebook and Export csv
Expand Down
56 changes: 28 additions & 28 deletions .github/workflows/rtlive-model-za.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,32 +32,32 @@ jobs:
cd notebooks/covid-model
python rtlive-model-za.py
- name: Commit changes
run: |
git config --local user.name github-actions
git config --local user.email "action@github.com"
git add data/calc/*.csv
if [[ "$(git status --porcelain)" != "" ]]; then
git commit -m "Rt model 2 action run" -a
git push origin master
fi
# - name: Commit changes
# run: |
# git config --local user.name github-actions
# git config --local user.email "action@github.com"
# git add data/calc/*.csv
# if [[ "$(git status --porcelain)" != "" ]]; then
# git commit -m "Rt model 2 action run" -a
# git push origin master
# fi

#- uses: stefanzweifel/git-auto-commit-action@v4
# with:
# Required
# commit_message: Rt model 2 action run
# Optional branch to push to, defaults to the current branch
#branch: master
# Optional options appended to `git-commit`
#commit_options: '--no-verify --signoff'
# Optional glob pattern of files which should be added to the commit
# file_pattern: data/calc/*.csv
# Optional local file path to the repository
#repository: .
# Optional commit user and author settings
# Optional tag message
# Action will create and push a new tag to the remote repository and the defined branch
#tagging_message: 'v1.0.0'
# Optional options appended to `git-push`
# push_options: '--force'
# commit_author: github-actions <action@github.com>
- uses: stefanzweifel/git-auto-commit-action@v4
with:
# Required
commit_message: Rt model 2 action run
# Optional branch to push to, defaults to the current branch
#branch: master
# Optional options appended to `git-commit`
#commit_options: '--no-verify --signoff'
# Optional glob pattern of files which should be added to the commit
file_pattern: data/calc/*.csv
# Optional local file path to the repository
#repository: .
# Optional commit user and author settings
# Optional tag message
# Action will create and push a new tag to the remote repository and the defined branch
#tagging_message: 'v1.0.0'
# Optional options appended to `git-push`
push_options: '--force'
commit_author: github-actions <action@github.com>

0 comments on commit f8bfa83

Please sign in to comment.