Skip to content

Commit

Permalink
Add branch to git-auto-commit-action step
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrohdezma committed Sep 18, 2020
1 parent 49139c7 commit b8b3561
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Checkout project
uses: actions/checkout@v2
- name: Label PR
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request'
uses: TimonVS/pr-labeler-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -30,12 +30,13 @@ jobs:
- name: Run pre-conditions
run: test -f .github/actions.yml && eval "$(yq r .github/actions.yml -D "true" pre.ci)" || true
- name: Run scalafmt on Scala Steward PRs
if: github.event.pull_request.user.login == '47erbot' && contains(github.event.pull_request.body, 'Scala Steward')
if: github.event.pull_request.user.login == '47erbot' && contains(github.event.pull_request.body, 'Scala Steward')
run: sbt "scalafixEnable; fix" || sbt "scalafmtAll; scalafmtSbt" || true
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4.1.3
with:
commit_message: Run formatter/linter
branch: ${{ github.head_ref }}
- name: Run checks
run: sbt ci-test
env:
Expand Down

0 comments on commit b8b3561

Please sign in to comment.