Skip to content

Commit

Permalink
Fix interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusroemer committed Sep 25, 2023
1 parent e18552a commit 5263b5c
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/pathogen-repo-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ on:
- conda
required: false

workflow-root:
build-dir:
description: >-
Path to the root of the workflow folder (e.g. one that contains a Snakefile) to run CI on.
The `BUILD_DIR` for `nextstrain build $BUILD_DIR`.
Example data is expected to be in `$BUILD_DIR/example_data/`
Defaults to the root of the workflow repo.
type: string
default: ${{ github.workspace }}
Expand Down Expand Up @@ -236,7 +237,7 @@ jobs:
python-version: "3.7"

- name: Copy example data
working-directory: ${{ inputs.workflow-root }}
working-directory: ${{ inputs.build-dir }}
run: |
if [[ -d example_data ]]; then
mkdir -p data/
Expand All @@ -246,17 +247,15 @@ jobs:
fi
- run: nextstrain build . ${{ inputs.build-args }}
working-directory: ${{ inputs.workflow-root }}
working-directory: ${{ inputs.build-dir }}

- if: always()
uses: actions/upload-artifact@v3
env:
workdir: ${{ inputs.workflow-root }}
with:
name: ${{ inputs.artifact-name }}-${{ matrix.runtime }}
path: |
$workdir/auspice/
$workdir/results/
$workdir/benchmarks/
$workdir/logs/
$workdir/.snakemake/log/
${{ inputs.build-dir }}/auspice/
${{ inputs.build-dir }}/results/
${{ inputs.build-dir }}/benchmarks/
${{ inputs.build-dir }}/logs/
${{ inputs.build-dir }}/.snakemake/log/

0 comments on commit 5263b5c

Please sign in to comment.