Skip to content

Commit 40448e7

Browse files
Allow to manually execute GitHub Action
1 parent dd96794 commit 40448e7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/maven.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,19 @@
1717

1818
name: Java CI
1919

20-
on: [push, pull_request]
20+
on: [push, pull_request, workflow_dispatch]
2121

2222
# clear all permissions for GITHUB_TOKEN
2323
permissions: {}
2424

2525
jobs:
2626
build:
2727

28-
# execute on any push or pull request from forked repo
29-
if: github.event_name == 'push' || ( github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork )
28+
# execute on any push, workflow_dispatch or pull request from forked repo
29+
if: >
30+
github.event_name == 'push' ||
31+
github.event_name == 'workflow_dispatch' ||
32+
( github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork )
3033
3134
strategy:
3235
matrix:

0 commit comments

Comments
 (0)