Skip to content

Commit 06d926c

Browse files
committed
Refine the GitHub workflows "on" triggers
Signed-off-by: tdruez <[email protected]>
1 parent 8f1a8e7 commit 06d926c

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

.github/workflows/find-vulnerabilities.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Find dependencies vulnerabilities
22

3-
on: [push]
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
49

510
jobs:
611
scan-codebase:

.github/workflows/publish-docker-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515
IMAGE_NAME: ${{ github.repository }}
1616

1717
jobs:
18-
build-and-push-image:
18+
build-and-publish-image:
1919
runs-on: ubuntu-24.04
2020

2121
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.

.github/workflows/run-unit-tests-docker.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
name: Run unit tests on Docker container
22

33
on:
4-
push:
5-
branches: [ main ]
4+
workflow_dispatch:
65
pull_request:
7-
branches: [ main ]
6+
push:
7+
branches:
8+
- main
89

910
jobs:
10-
test:
11+
run-unit-tests:
1112
runs-on: ubuntu-24.04
1213

1314
steps:

.github/workflows/run-unit-tests.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name: Run unit tests
22

33
on:
4-
push:
5-
branches: [ main ]
4+
workflow_dispatch:
65
pull_request:
7-
branches: [ main ]
6+
push:
7+
branches:
8+
- main
89

910
env:
1011
DATABASE_NAME: dejacode
@@ -13,7 +14,7 @@ env:
1314
POSTGRES_INITDB_ARGS: --encoding=UTF-8 --lc-collate=en_US.UTF-8 --lc-ctype=en_US.UTF-8
1415

1516
jobs:
16-
test:
17+
run-unit-tests:
1718
runs-on: ubuntu-24.04
1819

1920
services:

0 commit comments

Comments
 (0)