Skip to content

Commit

Permalink
[actions] in .github/workflows testsuite*, add back the possibility t…
Browse files Browse the repository at this point in the history
…o manually disapatch the one/all process workflows via workflow_dispatch
  • Loading branch information
valassi committed Nov 4, 2023
1 parent 4f5d883 commit 491f9ea
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/testsuite_allprocesses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ name: Test suite for all processes

on:

# Trigger the all-processes workflow when new changes to the workflow are pushed
push:
paths:
- '.github/workflows/testsuite*'

# Manually trigger the all-processes workflow
workflow_dispatch:

#----------------------------------------------------------------------------------------------------------------------------------

jobs:
Expand Down
21 changes: 11 additions & 10 deletions .github/workflows/testsuite_oneprocess.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,24 @@ name: Test suite for one process
#----------------------------------------------------------------------------------------------------------------------------------

on:

# Trigger the one-process workflow from the all-processes workflow
# See https://stackoverflow.com/a/75337311
workflow_call:
inputs:
process: # this variable is provided by the matrix in testsuite_allprocesses.yml
required: true
type: string

#FIXME: add ALSO the possibility of running only one process on request...

# From the default github manual workflow example
#workflow_dispatch:
# inputs:
# process:
# description: 'Physics process'
# default: 'gg_tt.mad'
# required: true
# type: string
# Manually trigger the one-process workflow
# (the lines below are adapted rom the default github manual workflow example)
workflow_dispatch:
inputs:
process:
description: 'Physics process'
default: 'gg_tt.mad'
required: true
type: string

#----------------------------------------------------------------------------------------------------------------------------------

Expand Down

0 comments on commit 491f9ea

Please sign in to comment.