diff --git a/.github/workflows/lua.yml b/.github/workflows/lua.yml index dfbf9c13..ab71f3dc 100644 --- a/.github/workflows/lua.yml +++ b/.github/workflows/lua.yml @@ -1,8 +1,17 @@ name: lua -on: [push, pull_request] + +on: + push: + branches: + - '**' + pull_request: + branches: + - '**' + jobs: style: runs-on: ubuntu-latest + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name steps: - uses: actions/checkout@v2 - uses: JohnnyMorganz/stylua-action@1.0.0 @@ -17,6 +26,7 @@ jobs: test: runs-on: ubuntu-latest + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name steps: - uses: actions/checkout@v2 - uses: leafo/gh-actions-lua@v9 diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index c8296bb4..29b84723 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -1,8 +1,17 @@ name: prettier -on: [push, pull_request] + +on: + push: + branches: + - '**' + pull_request: + branches: + - '**' + jobs: style: runs-on: ubuntu-latest + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name steps: - uses: actions/checkout@v2 - uses: actionsx/prettier@v2 diff --git a/.github/workflows/ruby.yaml b/.github/workflows/ruby.yaml index ec60f020..efc7a6ee 100644 --- a/.github/workflows/ruby.yaml +++ b/.github/workflows/ruby.yaml @@ -1,8 +1,17 @@ name: ruby -on: [push, pull_request] + +on: + push: + branches: + - '**' + pull_request: + branches: + - '**' + jobs: style: runs-on: ubuntu-latest + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name steps: - uses: actions/checkout@v2 - uses: jidicula/clang-format-action@v4.8.0 @@ -12,6 +21,7 @@ jobs: test: runs-on: ubuntu-latest + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name steps: - uses: actions/checkout@v2 - name: Install libraries