From 5d81e7c0ecd6a9a3ed23a93db3d0a10062736196 Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Sat, 4 Apr 2020 13:33:06 +0100 Subject: [PATCH] Run GitHub Actions on a push to the master branch --- .github/workflows/danger.yml | 22 ++++++++++++++++++++++ .github/workflows/main.yml | 13 ++----------- 2 files changed, 24 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/danger.yml 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 }}