Skip to content

Commit

Permalink
Update GitHub actions to run builds for forks (#1160)
Browse files Browse the repository at this point in the history
Apparently it only builds builds for forks on the `pull_request` events.

> Workflows triggered by pull_request_target events are run in the
> context of the base branch.

https://docs.github.com/en/actions/managing-workflow-runs/approving-workflow-runs-from-public-forks
  • Loading branch information
tombruijn authored Jul 5, 2024
1 parent c153ae7 commit 06f7ee6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@
---
name: Ruby gem CI
'on':
push: {}
push:
branches:
- main
- develop
pull_request:
types:
- opened
- reopened
- synchronize
schedule:
- cron: 0 0 * * 1-5
concurrency:
Expand Down
5 changes: 4 additions & 1 deletion build_matrix.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
github:
name: Ruby gem CI
"on":
push: {}
push:
branches: ["main", "develop"]
pull_request:
types: [opened, reopened, synchronize]
schedule:
- cron: "0 0 * * 1-5"

Expand Down

0 comments on commit 06f7ee6

Please sign in to comment.