Skip to content

Commit

Permalink
Allow workflows to be manually dispatched
Browse files Browse the repository at this point in the history
  • Loading branch information
cytopia committed Mar 27, 2022
1 parent beeff54 commit 9a981de
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/action_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ name: build
# When to run
# -------------------------------------------------------------------------------------------------
on:
workflow_dispatch:
push:


Expand Down
1 change: 1 addition & 0 deletions .github/workflows/action_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ name: build
# When to run
# -------------------------------------------------------------------------------------------------
on:
workflow_dispatch:
pull_request:


Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/params-nightly_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -74,3 +74,8 @@ jobs:
echo '--------------------'
echo '${{ steps.set-matrix-refs.outputs.matrix }}'
echo
echo 'GitHub event_name'
echo '--------------------'
echo '${{ github.event_name }}'
echo
7 changes: 6 additions & 1 deletion .github/workflows/params-nightly_tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -74,3 +74,8 @@ jobs:
echo '--------------------'
echo '${{ steps.set-matrix-refs.outputs.matrix }}'
echo
echo 'GitHub event_name'
echo '--------------------'
echo '${{ github.event_name }}'
echo
7 changes: 6 additions & 1 deletion .github/workflows/params.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -74,3 +74,8 @@ jobs:
echo '--------------------'
echo '${{ steps.set-matrix-refs.outputs.matrix }}'
echo
echo 'GitHub event_name'
echo '--------------------'
echo '${{ github.event_name }}'
echo

0 comments on commit 9a981de

Please sign in to comment.