Prohibit direct push to main and run tests only for pull-requests to main.

This commit is contained in:
Koichi Nakamura 2021-12-06 21:10:30 +09:00
parent 5d13f56297
commit f322404f59

View file

@ -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: