From 26ac4304f5da739d3c78f836bc468630392c4246 Mon Sep 17 00:00:00 2001 From: Serhii Londar Date: Thu, 16 Sep 2021 22:41:58 +0300 Subject: [PATCH] Update actions files --- .github/workflows/main.yml | 15 ++++----------- .github/workflows/pr.yml | 15 +++++++++++++++ 2 files changed, 19 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7c528db..42aae46 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,17 +1,10 @@ name: GitHub Actions Demo -on: [push] +on: + push: + branches: + - main jobs: - setup: - runs-on: macos-latest - steps: - - run: gem install awesome_bot - - run: gem install bundler - - run: gem install danger - - uses: actions/checkout@v2 - - run: awesome_bot applications.json -w https://matrix.org,https://camo.githubusercontent.com,http://joshparnham.com,https://pock.pigigaldi.com,https://docs.microsoft.com/powershell/scripting/install/installing-powershell-core-on-macos?view=powershell-6,https://adequate.systems/ --allow 429 - - run: danger generate-readme: - needs: setup runs-on: macos-latest steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..119eb49 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,15 @@ +name: PR +on: + pull_request: + branches: + - main +jobs: + setup: + runs-on: macos-latest + steps: + - run: gem install awesome_bot + - run: gem install bundler + - run: gem install danger + - uses: actions/checkout@v2 + - run: awesome_bot applications.json -w https://matrix.org,https://camo.githubusercontent.com,http://joshparnham.com,https://pock.pigigaldi.com,https://docs.microsoft.com/powershell/scripting/install/installing-powershell-core-on-macos?view=powershell-6,https://adequate.systems/ --allow 429 + - run: danger