diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.yml new file mode 100644 index 00000000..228c29c1 --- /dev/null +++ b/.github/workflows/danger.yml @@ -0,0 +1,22 @@ +# This is a basic workflow to help you get started with Actions + +name: Danger + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + pull_request: + branches: [ master ] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + danger-lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Danger Swift + uses: maxdesiatov/danger-swift@swiftlint-docker + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 87194cf7..01454a34 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,6 +5,8 @@ name: CI # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the master branch on: + push: + branches: [ master ] pull_request: branches: [ master ] @@ -83,14 +85,3 @@ jobs: - name: Run CocoaPods linter run: ./pod.sh - - danger-lint: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Danger Swift - uses: maxdesiatov/danger-swift@swiftlint-docker - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}