Skip to content

Commit

Permalink
Run workflows only for the main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernricks committed Jan 24, 2025
1 parent d1f507a commit 1da2d34
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci-c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: Build and test C

on:
push:
branches: [main, stable, oldstable]
branches:
- main
pull_request:
branches: [main, stable, oldstable]
branches:
- main

jobs:
c-format-check:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: "CodeQL"

on:
push:
branches: [ main, stable, oldstable ]
branches:
- main
pull_request:
branches: [ main, stable, oldstable ]
branches:
- main
paths-ignore:
- '**/*.md'
- '**/*.txt'
Expand Down

0 comments on commit 1da2d34

Please # to comment.