Skip to content

Commit e4f88cd

Browse files
set snakefile location
1 parent ad5cbad commit e4f88cd

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ jobs:
1414
- uses: ./
1515
with:
1616
directory: .test
17+
snakefile: .test/Snakefile

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ This action runs Snakemake on the repository.
1313

1414
**Required** The working directory to use. Default `.test`.
1515

16+
### `snakefile`
17+
18+
The Snakefile containing the workflow description. Default `Snakefile`.
19+
1620
### `args`
1721

1822
Additional arguments to pass to Snakemake.

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ inputs:
55
description: Working directory for the execution
66
required: true
77
default: .test
8+
snakefile:
9+
description: Snakefile containing the workflow description
10+
default: Snakefile
811
args:
912
description: Additional Snakemake arguments to use
1013
required: false
@@ -14,4 +17,5 @@ runs:
1417
image: 'Dockerfile'
1518
args:
1619
- ${{ inputs.directory }}
20+
- ${{ inputs.snakefile }}
1721
- ${{ inputs.args }}

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
export PATH=/opt/conda/bin:$PATH
44

5-
snakemake --directory $1 $2
5+
snakemake --directory $1 --snakefile $2 $3
66

0 commit comments

Comments
 (0)