Skip to content

Commit

Permalink
CI: Avoid duplicate runs for pull requests
Browse files Browse the repository at this point in the history
Syntax tests are executed only when
1. pushing to "main" branch.
2. creating a or pushing to an open pull request.
  • Loading branch information
deathaxe committed Nov 20, 2024
1 parent f484a82 commit 0ffd95f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci-syntax-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@ name: CI Syntax Tests

on:
push:
push:
branches:
- 'main'
- 'st4126'
tags-ignore:
- '**'
paths:
- '.github/workflows/ci-syntax-tests.yml'
- '**.sublime-syntax'
- '**/syntax_test_*'
- '**.tmPreferences'
pull_request:
branches:
- '**'
paths:
- '.github/workflows/ci-syntax-tests.yml'
- '**.sublime-syntax'
Expand All @@ -25,6 +26,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15 # default is 6 hours!
strategy:
fail-fast: false
matrix:
include:
- build: 4126
Expand Down

0 comments on commit 0ffd95f

Please sign in to comment.