Allow workflows to be manually dispatched

This commit is contained in:
cytopia
2022-03-27 18:37:27 +02:00
parent beeff54815
commit 9a981de73f
5 changed files with 20 additions and 3 deletions

View File

@@ -10,6 +10,7 @@ name: build
# When to run
# -------------------------------------------------------------------------------------------------
on:
workflow_dispatch:
push:

View File

@@ -10,6 +10,7 @@ name: build
# When to run
# -------------------------------------------------------------------------------------------------
on:
workflow_dispatch:
pull_request:

View File

@@ -61,7 +61,7 @@ jobs:
repository_default_branch: master
branches: master
num_latest_tags: 0
if: github.event_name == 'schedule'
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
- name: "[DEBUG] Show settings'"
run: |
@@ -74,3 +74,8 @@ jobs:
echo '--------------------'
echo '${{ steps.set-matrix-refs.outputs.matrix }}'
echo
echo 'GitHub event_name'
echo '--------------------'
echo '${{ github.event_name }}'
echo

View File

@@ -61,7 +61,7 @@ jobs:
repository_default_branch: master
branches: ""
num_latest_tags: 1
if: github.event_name == 'schedule'
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
- name: "[DEBUG] Show settings'"
run: |
@@ -74,3 +74,8 @@ jobs:
echo '--------------------'
echo '${{ steps.set-matrix-refs.outputs.matrix }}'
echo
echo 'GitHub event_name'
echo '--------------------'
echo '${{ github.event_name }}'
echo

View File

@@ -61,7 +61,7 @@ jobs:
repository_default_branch: master
branches: master
num_latest_tags: 1
if: github.event_name == 'schedule'
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
- name: "[DEBUG] Show settings'"
run: |
@@ -74,3 +74,8 @@ jobs:
echo '--------------------'
echo '${{ steps.set-matrix-refs.outputs.matrix }}'
echo
echo 'GitHub event_name'
echo '--------------------'
echo '${{ github.event_name }}'
echo