From 4d5f904ae1fcf634dab6d16722b06f118069a286 Mon Sep 17 00:00:00 2001 From: alejandrohdezma Date: Fri, 2 Oct 2020 11:20:59 +0000 Subject: [PATCH] Update files from `.github` to v0.28.0 [skip ci] --- .github/workflows/ci.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5113620..93b9be1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ name: Formatters & Tests on: push: - branches: master + branches: [master] pull_request: jobs: @@ -14,7 +14,14 @@ jobs: if: "!contains(github.event.head_commit.message, 'skip ci')" runs-on: ubuntu-latest steps: - - name: Checkout project + - name: Checkout project (pull-request) + if: github.event_name == 'pull_request' + uses: actions/checkout@v2.3.2 + with: + repository: ${{ github.event.pull_request.head.repo.full_name }} + ref: ${{ github.event.pull_request.head.ref }} + - name: Checkout project (master) + if: github.event_name == 'push' uses: actions/checkout@v2 - name: Label PR if: github.event_name == 'pull_request' @@ -33,7 +40,7 @@ jobs: if: github.event.pull_request.user.login == 'alejandrohdezma' && 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 + uses: stefanzweifel/git-auto-commit-action@v4.5.1 with: commit_message: Run formatter/linter - name: Run checks