Skip to content

Commit

Permalink
Fix: GitHub Workflow trigger
Browse files Browse the repository at this point in the history
GitHub Workflow was triggered only when push event was fired.
Now it is also triggered when pull_request event is fired.
This enables external contributors to run tests when they send pull requests.
(push event is fired when push is done to forked repository, but push event is not fired when push is done to kitsuyui's repository)
  • Loading branch information
kitsuyui committed Aug 7, 2023
1 parent d069e90 commit 08328a5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cratesio-publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: publish crates

on:
push:
pull_request:
release:
# "released" events are emitted either when directly be released or be edited from pre-released.
types: [prereleased, released]
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Spellcheck
on: [push]
on:
- push
- pull_request
permissions:
contents: read
jobs:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: tests
on: [push]
on:
- push
- pull_request

jobs:
check:
Expand Down

0 comments on commit 08328a5

Please sign in to comment.