Skip to content

Commit

Permalink
change github actions to run only on PRs and merge to main (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
janiceblue authored Sep 25, 2024
1 parent e75a946 commit 4fb5c43
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/headers.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
name: headers
run-name: License headers check by ${{ github.actor }}

on: [push, pull_request]
on:
# Trigger the workflow on push to main or any pull request
push:
branches:
- main
pull_request:

jobs:
header-checks:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
name: style
run-name: Style test by ${{ github.actor }}

on: [push, pull_request]
on:
# Trigger the workflow on push to main or any pull request
push:
branches:
- main
pull_request:

jobs:
style-tests:
Expand Down

0 comments on commit 4fb5c43

Please sign in to comment.