Skip to content

Commit

Permalink
Limit to only run push on main and when a pull request is opened to p…
Browse files Browse the repository at this point in the history
…revent duplicate jobs
  • Loading branch information
avvertix committed Sep 17, 2024
1 parent 8c7bd86 commit de4e84b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: CI

on: [push, pull_request]
on:
push:
branches:
- "main"
pull_request:
types: [opened, synchronize, reopened]

permissions:
contents: read
Expand Down

0 comments on commit de4e84b

Please sign in to comment.