From f322404f59b019d5ea39236a1736f1d9eaf4bfa1 Mon Sep 17 00:00:00 2001 From: Koichi Nakamura Date: Mon, 6 Dec 2021 21:10:30 +0900 Subject: [PATCH] Prohibit direct push to main and run tests only for pull-requests to main. --- .github/workflows/runtests.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/runtests.yaml b/.github/workflows/runtests.yaml index 3394ff5..f19963f 100644 --- a/.github/workflows/runtests.yaml +++ b/.github/workflows/runtests.yaml @@ -1,9 +1,9 @@ name: runtests on: - push: - paths-ignore: ['README.md', 'LICENSE', '.gitignore'] pull_request: + branches: + - main paths-ignore: ['README.md', 'LICENSE', '.gitignore'] jobs: runtests: