Skip to content

Commit c17e49b

Browse files
authored
Merge pull request #235 from devilbox/workflow-dispatch
Allow workflows to be manually dispatched
2 parents beeff54 + 9a981de commit c17e49b

5 files changed

Lines changed: 20 additions & 3 deletions

File tree

.github/workflows/action_branch.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ name: build
1010
# When to run
1111
# -------------------------------------------------------------------------------------------------
1212
on:
13+
workflow_dispatch:
1314
push:
1415

1516

.github/workflows/action_pull_request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ name: build
1010
# When to run
1111
# -------------------------------------------------------------------------------------------------
1212
on:
13+
workflow_dispatch:
1314
pull_request:
1415

1516

.github/workflows/params-nightly_master.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
repository_default_branch: master
6262
branches: master
6363
num_latest_tags: 0
64-
if: github.event_name == 'schedule'
64+
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
6565

6666
- name: "[DEBUG] Show settings'"
6767
run: |
@@ -74,3 +74,8 @@ jobs:
7474
echo '--------------------'
7575
echo '${{ steps.set-matrix-refs.outputs.matrix }}'
7676
echo
77+
78+
echo 'GitHub event_name'
79+
echo '--------------------'
80+
echo '${{ github.event_name }}'
81+
echo

.github/workflows/params-nightly_tags.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
repository_default_branch: master
6262
branches: ""
6363
num_latest_tags: 1
64-
if: github.event_name == 'schedule'
64+
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
6565

6666
- name: "[DEBUG] Show settings'"
6767
run: |
@@ -74,3 +74,8 @@ jobs:
7474
echo '--------------------'
7575
echo '${{ steps.set-matrix-refs.outputs.matrix }}'
7676
echo
77+
78+
echo 'GitHub event_name'
79+
echo '--------------------'
80+
echo '${{ github.event_name }}'
81+
echo

.github/workflows/params.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
repository_default_branch: master
6262
branches: master
6363
num_latest_tags: 1
64-
if: github.event_name == 'schedule'
64+
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
6565

6666
- name: "[DEBUG] Show settings'"
6767
run: |
@@ -74,3 +74,8 @@ jobs:
7474
echo '--------------------'
7575
echo '${{ steps.set-matrix-refs.outputs.matrix }}'
7676
echo
77+
78+
echo 'GitHub event_name'
79+
echo '--------------------'
80+
echo '${{ github.event_name }}'
81+
echo

0 commit comments

Comments
 (0)