Skip to content

Commit

Permalink
tooling: adjust workflow triggers to only run when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
manicminer committed Aug 19, 2024
1 parent 6f3f1a5 commit 70799a5
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- fake_name_to_disable_trigger
paths:
- '.github/workflows/**'
- 'config/microsoft-graph.hcl'
- 'submodules/msgraph-metadata'
- 'tools/importer-msgraph/**'
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/automation-regenerate-terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches:
- main
paths:
- 'api-definitions/**'
- 'api-definitions/handwritten-resource-manager/**'
- 'api-definitions/resource-manager/**'
- 'tools/generator-terraform/**'
workflow_dispatch: # for manual invocations

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/automation-rest-api-specs-importer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
branches:
- main
paths:
- '.github/workflows/**'
- 'config/**'
- 'config/resource-manager.hcl'
- 'config/resources/**'
- 'submodules/rest-api-specs'
- 'tools/importer-rest-api-specs/**'
workflow_dispatch: # for manual invocations
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/automation-version-bumper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
branches:
- main
paths:
- '.github/workflows/**'
- 'config/**'
- '.github/workflows/automation-version-bumper.yaml'
- 'config/resource-manager.hcl'
- 'submodules/msgraph-metadata'
- 'submodules/rest-api-specs'
- 'tools/version-bumper/**'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-test-data-api-differ.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
types: ['opened', 'synchronize']
paths:
- '.github/workflows/**'
- '.github/workflows/unit-test-data-api-differ.yaml'
- 'tools/data-api-differ/**'

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-test-data-api-v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
types: ['opened', 'synchronize']
paths:
- '.github/workflows/**'
- '.github/workflows/unit-test-data-api-v2.yaml'
- 'api-definitions/**'
- 'tools/data-api/**'

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/unit-test-end-to-end-microsoft-graph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ on:
pull_request:
types: ['opened', 'synchronize']
paths:
- '.github/workflows/**'
- 'config/**'
- '.github/workflows/unit-test-end-to-end-microsoft-graph.yaml'
- 'config/microsoft-graph.hcl'
- 'tools/generator-go-sdk/**'
- 'tools/importer-msgraph-metadata/**'

jobs:
test:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/unit-test-end-to-end-resource-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ on:
pull_request:
types: ['opened', 'synchronize']
paths:
- '.github/workflows/**'
- 'config/**'
- '.github/workflows/unit-test-end-to-end-resource-manager.yaml'
- 'config/resource-manager.hcl'
- 'config/resources/**'
- 'tools/generator-go-sdk/**'
- 'tools/importer-rest-api-specs/**'

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-test-generator-go-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
types: ['opened', 'synchronize']
paths:
- '.github/workflows/**'
- '.github/workflows/unit-test-generator-go-sdk.yaml'
- 'tools/generator-go-sdk/**'

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-test-generator-terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
types: ['opened', 'synchronize']
paths:
- '.github/workflows/**'
- '.github/workflows/unit-test-generator-terraform.yaml'
- 'tools/generator-terraform/**'

jobs:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/unit-test-rest-api-specs-importer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ on:
pull_request:
types: ['opened', 'synchronize']
paths:
- '.github/workflows/**'
- 'config/**'
- '.github/workflows/unit-test-rest-api-specs-importer.yaml'
- 'config/resource-manager.hcl'
- 'config/resources/**'
- 'submodules/rest-api-specs'
- 'tools/importer-rest-api-specs/**'

Expand Down

0 comments on commit 70799a5

Please sign in to comment.