Skip to content

Commit

Permalink
use same push process as in fix-linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu committed Jul 21, 2023
1 parent 7621030 commit 9a516ac
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build-json-files-and-md-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Don't do a shallow clone
token: ${{secrets.NF_CORE_BOT_AUTH_TOKEN}} # Needed for pushing back to the repo

# install npm dependencies
- name: Set up node.js
Expand Down Expand Up @@ -71,11 +72,13 @@ jobs:
# Commit and push the changes if there are not too many lines changed
- name: Commit and push changes
if: ${{ !steps.check_lines.outputs.changes }}
uses: EndBug/add-and-commit@v9
with:
default_author: user_info
author_name: nf-core-bot
author_email: core@nf-co.re
run: |
git config user.email "core@nf-co.re"
git config user.name "nf-core-bot"
git config push.default upstream
git status
git diff --quiet || (git commit -am "[automated] Update json files and markdown cache" && git push)
# Create a PR if there are too many lines changed
- name: Create PR with changes
Expand Down

0 comments on commit 9a516ac

Please sign in to comment.