Skip to content

Commit

Permalink
avoid duplicated workflow invocations for pushes in PRs made from roo…
Browse files Browse the repository at this point in the history
…t repository branches (#5377)

This will prevent duplicated workflows from being invoked for pushes
into pull requests made from branches in the root (`danmar`) repository
branches.
  • Loading branch information
firewave committed Sep 1, 2023
1 parent ed5d03e commit bf5e633
Show file tree
Hide file tree
Showing 16 changed files with 128 additions and 16 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/CI-cygwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@

name: CI-cygwin

on: [push,pull_request]
on:
push:
branches:
- 'main'
- 'releases/**'
tags:
- '2.*'
pull_request:

permissions:
contents: read
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/CI-mingw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@

name: CI-mingw

on: [push,pull_request]
on:
push:
branches:
- 'main'
- 'releases/**'
tags:
- '2.*'
pull_request:

permissions:
contents: read
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/CI-unixish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
# Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
name: CI-unixish-docker

on: [push, pull_request]
on:
push:
branches:
- 'main'
- 'releases/**'
tags:
- '2.*'
pull_request:

permissions:
contents: read
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/CI-unixish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
# Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
name: CI-unixish

on: [push, pull_request]
on:
push:
branches:
- 'main'
- 'releases/**'
tags:
- '2.*'
pull_request:

permissions:
contents: read
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/CI-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@

name: CI-windows

on: [push,pull_request]
on:
push:
branches:
- 'main'
- 'releases/**'
tags:
- '2.*'
pull_request:

permissions:
contents: read
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/asan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
# Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
name: address sanitizer

on: [push, pull_request]
on:
push:
branches:
- 'main'
- 'releases/**'
tags:
- '2.*'
pull_request:

permissions:
contents: read
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/buildman.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Build manual

on: [push, pull_request]
on:
push:
branches:
- 'main'
- 'releases/**'
tags:
- '2.*'
pull_request:

permissions:
contents: read
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
# Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
name: clang-tidy

on: [push, pull_request]
on:
push:
branches:
- 'main'
- 'releases/**'
tags:
- '2.*'
pull_request:

permissions:
contents: read
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: "CodeQL"

on: [push, pull_request]
on:
push:
branches:
- 'main'
- 'releases/**'
tags:
- '2.*'
pull_request:

permissions:
contents: read
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
# Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
name: Coverage

on: [push, pull_request]
on:
push:
branches:
- 'main'
- 'releases/**'
tags:
- '2.*'
pull_request:

permissions:
contents: read
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
# Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
name: format

on: [push, pull_request]
on:
push:
branches:
- 'main'
- 'releases/**'
tags:
- '2.*'
pull_request:

permissions:
contents: read
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/scriptcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
# Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
name: scriptcheck

on: [push, pull_request]
on:
push:
branches:
- 'main'
- 'releases/**'
tags:
- '2.*'
pull_request:

permissions:
contents: read
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/selfcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
# Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
name: selfcheck

on: [push, pull_request]
on:
push:
branches:
- 'main'
- 'releases/**'
tags:
- '2.*'
pull_request:

permissions:
contents: read
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/tsan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
# Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
name: thread sanitizer

on: [push, pull_request]
on:
push:
branches:
- 'main'
- 'releases/**'
tags:
- '2.*'
pull_request:

permissions:
contents: read
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/ubsan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
# Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
name: undefined behaviour sanitizers

on: [push, pull_request]
on:
push:
branches:
- 'main'
- 'releases/**'
tags:
- '2.*'
pull_request:

permissions:
contents: read
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/valgrind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
# Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
name: valgrind

on: [push, pull_request]
on:
push:
branches:
- 'main'
- 'releases/**'
tags:
- '2.*'
pull_request:

permissions:
contents: read
Expand Down

0 comments on commit bf5e633

Please sign in to comment.