Skip to content

Commit

Permalink
Merge pull request #1132 from ewels/fix-linting-push-behaviour
Browse files Browse the repository at this point in the history
Hopefully this will fix 'git push' on some PRs
  • Loading branch information
ewels authored Apr 12, 2022
2 parents 0eab4c1 + 5f430f2 commit 6b54d9f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/fix-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,13 @@ jobs:
if: steps.prettier_status.outputs.result == 'fail'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# push.default stuff is because branch names can vary
# See https://github.com/github/hub/issues/821#issuecomment-255531557
run: |
git config --global user.email "[email protected]"
git config --global user.name "nf-core-bot"
git config user.email "[email protected]"
git config user.name "nf-core-bot"
git config push.default upstream
git config [email protected]:.pushInsteadOf git://github.com/
git add .
git status
git commit -m "[automated] Fix linting with Prettier"
Expand Down

0 comments on commit 6b54d9f

Please sign in to comment.