Skip to content

Commit ceb5c08

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Github Actions] trigger events changed.
1 parent 9c19f55 commit ceb5c08

8 files changed

+28
-10
lines changed

.github/workflows/docker-image.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ name: Docker Image CI
44

55
on: # yamllint disable-line rule:truthy
66
push:
7-
branches: ["main", "develop", "feature/*"]
7+
branches: ["main"]
88
pull_request:
9+
# The branches below must be a subset of the branches above
910
branches: ["main"]
11+
workflow_dispatch:
1012

1113
env:
1214
IMAGE_NAME: algorithm-exercises-csharp

.github/workflows/dotnet-coverage.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ name: .NET Coverage
99

1010
on: # yamllint disable-line rule:truthy
1111
push:
12-
branches: ["main", "develop", "feature/*"]
12+
branches: ["main"]
1313
pull_request:
14+
# The branches below must be a subset of the branches above
1415
branches: ["main"]
16+
workflow_dispatch:
1517

1618
jobs:
1719
build:

.github/workflows/dotnet.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ name: .NET Tests
99

1010
on: # yamllint disable-line rule:truthy
1111
push:
12-
branches: ["main", "develop", "feature/*"]
12+
branches: ["main"]
1313
pull_request:
14+
# The branches below must be a subset of the branches above
1415
branches: ["main"]
16+
workflow_dispatch:
1517

1618
jobs:
1719
build:

.github/workflows/gitleaks.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,19 @@
33
name: gitleaks
44

55
on: # yamllint disable-line rule:truthy
6-
pull_request:
76
push:
7+
pull_request:
88
workflow_dispatch:
99
schedule:
10+
# ┌───────────── minute (0 - 59)
11+
# │ ┌───────────── hour (0 - 23)
12+
# │ │ ┌───────────── day of the month (1 - 31)
13+
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
14+
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
15+
# │ │ │ │ │
16+
# │ │ │ │ │
17+
# │ │ │ │ │
18+
# * * * * *
1019
- cron: "0 4 * * *" # run once a day at 4 AM
1120
jobs:
1221
scan:

.github/workflows/markdown-lint.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ name: Markdown Lint
44

55
on: # yamllint disable-line rule:truthy
66
push:
7-
branches: ["main", "develop", "feature/*"]
7+
branches: ["main"]
88
pull_request:
9+
# The branches below must be a subset of the branches above
910
branches: ["main"]
11+
workflow_dispatch:
1012

1113
permissions: read-all
1214

.github/workflows/snyk-code.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ name: .NET Snyk Code analysis
99

1010
on: # yamllint disable-line rule:truthy
1111
push:
12-
branches: ["main", "develop", "feature/*"]
1312
pull_request:
14-
branches: ["main"]
13+
workflow_dispatch:
1514

1615
jobs:
1716
security:

.github/workflows/sonarcloud.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ name: SonarCloud
44

55
on: # yamllint disable-line rule:truthy
66
push:
7-
branches:
8-
- main
7+
branches: ["main"]
98
pull_request:
109
types: [opened, synchronize, reopened]
10+
workflow_dispatch:
1111

1212
jobs:
1313
build:

.github/workflows/yamllint.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ name: YAML lint
33

44
on: # yamllint disable-line rule:truthy
55
push:
6-
branches: ["main", "develop", "feature/*"]
6+
branches: ["main"]
77
pull_request:
8+
# The branches below must be a subset of the branches above
89
branches: ["main"]
10+
workflow_dispatch:
911

1012
jobs:
1113
lint:

0 commit comments

Comments
 (0)