Skip to content

Commit

Permalink
rename cache restore id
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Jul 24, 2020
1 parent 42331f8 commit f872cd4
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/pipeline_sra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ jobs:

- name: restore eager cache
uses: actions/cache@v2
id: eager-env-cache
id: eager-env-cache-restore
with:
path: |
/home/runner/miniconda/envs/nf-core-eager-2.2.0dev
key: eager-env-cache-${{ runner.os }}-test2-${{ hashFiles('./nf-core-eager.yaml') }}

- name: restore plague-phylogeography cache
uses: actions/cache@v2
id: plague-phylogeography-env-cache
id: plague-phylogeography-env-cache-restore
with:
path: |
/home/runner/miniconda/envs/plague-phylogeography-0.1.4dev
Expand Down Expand Up @@ -105,3 +105,18 @@ jobs:
--outdir test \
${GH_RESOURCES}
conda deactivate
# SRA Analysis Pipeline
- name: pipeline sra analysis
if: steps.plague-phylogeography-env-cache-restore.outputs.cache-hit == 'true' && steps.eager-env-cache-restore.outputs.cache-hit == 'true'
shell: bash -l {0}
run: |
conda activate ${PHYLO_CONDA_ENV}
nextflow run -r ${GITHUB_SHA} ${GITHUB_REPOSITORY} \
--skip_assembly_download \
--max_datasets_assembly 1 \
--sqlite_select_command_sra "\"SELECT BioSampleAccession,SRARunAccession,SRALibraryLayout,SRAFileURL FROM Master WHERE (SRARunAccession = 'SRR1048902' OR SRARunAccession = 'SRR1048905')\"" \
--skip_outgroup_download \
--outdir test \
-resume \
${GH_RESOURCES}
conda deactivate

0 comments on commit f872cd4

Please sign in to comment.