Skip to content
This repository was archived by the owner on Jun 10, 2026. It is now read-only.

Commit 913ab75

Browse files
committed
fix: reduce redundancy in workflow jobs
This fixes CI so it doesn't run all the jobs for "push" and "pull_request" for PRs. It also will cancel any in-progress jobs if I push a new commit.
1 parent 218c15a commit 913ab75

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
---
22
name: Test
33

4-
on: [push, pull_request]
4+
on:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
512

613
jobs:
714
build:

0 commit comments

Comments
 (0)