Skip to content

Commit

Permalink
Do not run all GHA workflows twice when a new branch is created (#7825)
Browse files Browse the repository at this point in the history
* Do not run all GHA workflows twice when a new branch is created

* Do not trigger Ansible molecule GHAs
  • Loading branch information
zrhoffman committed Oct 3, 2023
1 parent 6c62991 commit 2d35707
Show file tree
Hide file tree
Showing 26 changed files with 24 additions and 50 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/ansible.molecule.fo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,18 @@
---
name: Molecule - FO

on:
create:
push:
paths:
- .github/workflows/ansible.molecule.fo.yml
- infrastructure/ansible/roles/molecule_shared/**
- infrastructure/ansible/roles/fakeOrigin/**
pull_request:
paths:
- .github/workflows/ansible.molecule.fo.yml
- infrastructure/ansible/roles/molecule_shared/**
- infrastructure/ansible/roles/fakeOrigin/**
types: [opened, reopened, ready_for_review, synchronize]
#on:
# push:
# paths:
# - .github/workflows/ansible.molecule.fo.yml
# - infrastructure/ansible/roles/molecule_shared/**
# - infrastructure/ansible/roles/fakeOrigin/**
# pull_request:
# paths:
# - .github/workflows/ansible.molecule.fo.yml
# - infrastructure/ansible/roles/molecule_shared/**
# - infrastructure/ansible/roles/fakeOrigin/**
# types: [opened, reopened, ready_for_review, synchronize]

jobs:
lint:
Expand Down
25 changes: 12 additions & 13 deletions .github/workflows/ansible.molecule.todb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,18 @@
---
name: Molecule - TODB

on:
create:
push:
paths:
- .github/workflows/ansible.molecule.todb.yml
- infrastructure/ansible/roles/molecule_shared/**
- infrastructure/ansible/roles/traffic_opsdb/**
pull_request:
paths:
- .github/workflows/ansible.molecule.todb.yml
- infrastructure/ansible/roles/molecule_shared/**
- infrastructure/ansible/roles/traffic_opsdb/**
types: [opened, reopened, ready_for_review, synchronize]
#on:
# push:
# paths:
# - .github/workflows/ansible.molecule.todb.yml
# - infrastructure/ansible/roles/molecule_shared/**
# - infrastructure/ansible/roles/traffic_opsdb/**
# pull_request:
# paths:
# - .github/workflows/ansible.molecule.todb.yml
# - infrastructure/ansible/roles/molecule_shared/**
# - infrastructure/ansible/roles/traffic_opsdb/**
# types: [opened, reopened, ready_for_review, synchronize]

jobs:
lint:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/cache-config-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ on:
- traffic_ops/traffic_ops_golang/**.go
- vendor/**.go
- vendor/modules.txt
create:
pull_request:
paths:
- cache-config/**.go
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/cache-config.unit.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ on:
- '!**_test.go'
- 'cache-config/**_test.go'
- vendor/modules.txt
create:
pull_request:
paths:
- .github/actions/go-test/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/check-go-modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ on:
- go.sum
- GO_VERSION
- vendor/**
create:
pull_request:
paths:
- .github/check-go-modules/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ciab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ on:
- 'dev/**'
- 'Makefile'
- 'cache-config/Makefile'
create:
pull_request:
paths-ignore:
- '*.*'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
name: Documentation Build

on:
create:
push:
paths:
- docs/source/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/go.fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ on:
- .github/workflows/go.fmt.yml
- GO_VERSION
- "**.go"
create:
pull_request:
paths:
- .github/actions/go-fmt
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/go.lib.unit.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ on:
- '!**_test.go'
- 'lib/**_test.go'
- vendor/modules.txt
create:
pull_request:
paths:
- .github/actions/go-test/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/go.vet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ on:
- .github/workflows/go.vet.yml
- GO_VERSION
- '**.go'
create:
pull_request:
paths:
- .github/actions/go-vet
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/grove.unit.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ on:
- '!**_test.go'
- 'grove/**_test.go'
- vendor/modules.txt
create:
pull_request:
paths:
- .github/actions/go-test/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/health-client-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ on:
- .github/actions/build-ats-test-rpm/**
- .github/actions/repo-info/**
- .github/actions/health-client-integration-tests/**
create:
pull_request:
paths:
- .github/workflows/health-client-tests.yml
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/license-file-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ on:
- .github/workflows/license-file-coverage.yml
- .github/actions/license-file-coverage
- LICENSE
create:
pull_request:
paths:
- .github/workflows/license-file-coverage.yml
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/postinstall.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ on:
- .github/workflows/postinstall.tests.yml
- traffic_ops/install/bin/_postinstall
- traffic_ops/install/bin/postinstall.test.sh
create:
pull_request:
paths:
- .github/workflows/postinstall.tests.yml
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tm.integration.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ on:
- GO_VERSION
- traffic_monitor/**
- lib/**
create:
pull_request:
paths:
- .github/actions/tm-integration-tests/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tm.unit.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ on:
- '!**_test.go'
- 'traffic_monitor/**_test.go'
- vendor/modules.txt
create:
pull_request:
paths:
- .github/actions/go-test/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/to.api.contract.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ on:
- traffic_ops/**.go
- '!**_test.go'
- traffic_control/clients/python/**.py
create:
pull_request:
paths:
- .github/actions/todb-init/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/to.integration.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ on:
- traffic_ops/traffic_ops_golang/**.go
- vendor/**.go
- vendor/modules.txt
create:
pull_request:
paths:
- .github/actions/todb-init/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/to.unit.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ on:
- '!**_test.go'
- 'traffic_ops/traffic_ops_golang/**_test.go'
- vendor/modules.txt
create:
pull_request:
paths:
- .github/actions/go-test/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tp.integration.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ on:
- traffic_ops/app/db/**
- traffic_ops/traffic_ops_golang/**.go
- traffic_portal/**
create:
pull_request:
paths:
- .github/actions/todb-init/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tpv2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ on:
- '!**_test.go'
- traffic_ops/app/db/**
- traffic_ops/traffic_ops_golang/**.go
create:
pull_request:
paths:
- experimental/traffic-portal/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tr-ultimate-test-harness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ on:
- .github/workflows/tr-ultimate-test-harness.yml
- dev/traffic_router/**
- traffic_router/**
create:
pull_request:
paths:
- .github/actions/tr-ultimate-test-harness/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tr.tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ on:
paths:
- .github/workflows/tr.tests.yaml
- traffic_router/**
create:
pull_request:
paths:
- .github/workflows/tr.tests.yaml
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/traffic-stats.unit.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ on:
- '!**_test.go'
- traffic_stats/**_test.go
- vendor/modules.txt
create:
pull_request:
paths:
- .github/actions/go-test/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/traffic.ops.database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ env:
ALPINE_VERSION: sha256:08d6ca16c60fe7490c03d10dc339d9fd8ea67c6466dea8d558526b1330a85930

on:
create:
push:
paths:
- traffic_ops/app/db/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/weasel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ name: Weasel License checks

on:
push:
create:
pull_request:
types: [opened, reopened, ready_for_review, synchronize]

Expand Down

0 comments on commit 2d35707

Please sign in to comment.