Skip to content

Commit d0f19a8

Browse files
committed
Add workflow_dispatch trigger to CI and publish workflows
Enabled manual triggering for build-and-run-test, Maven Central publish, and Maven GitHub publish workflows by adding the workflow_dispatch event. This allows workflows to be run on demand in addition to their existing triggers.
1 parent 41c3f3f commit d0f19a8

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/workflows/build-and-run-test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name: Spring Web Captor CI
22

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

910
jobs:
1011
build:

.github/workflows/maven-central-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Deploy to Maven Central
22

33
on:
4+
workflow_dispatch:
45
release:
56
types: [ created ]
67

.github/workflows/maven-github-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Maven Publish to GitHub Packages
22

33
on:
4+
workflow_dispatch:
45
release:
56
types: [ created ]
67

0 commit comments

Comments
 (0)