Skip to content

Commit

Permalink
Merge pull request #23 from nextstrain/fix-cache
Browse files Browse the repository at this point in the history
Fix cache
  • Loading branch information
joverlee521 authored Oct 10, 2024
2 parents b047081 + 3f3fcb9 commit 66c283e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ingest-to-phylogenetic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ jobs:
AWS_DEFAULT_REGION: ${{ vars.AWS_DEFAULT_REGION }}
run: |
s3_urls=(
"s3://nextstrain-data/files/workflows/WNV/all/metadata.tsv.zst"
"s3://nextstrain-data/files/workflows/WNV/all/sequences.fasta.zst"
"s3://nextstrain-data/files/workflows/WNV/metadata.tsv.zst"
"s3://nextstrain-data/files/workflows/WNV/sequences.fasta.zst"
)
# Code below is modified from ingest/upload-to-s3
Expand All @@ -80,6 +80,11 @@ jobs:
key="${s3path#*/}"
s3_hash="$(aws s3api head-object --no-sign-request --bucket "$bucket" --key "$key" --query Metadata.sha256sum --output text 2>/dev/null || echo "$no_hash")"
if [[ "${s3_hash}" == "${no_hash}" ]]; then
echo "No Metadata.sha256sum found for ${s3_url}" >> "$GITHUB_STEP_SUMMARY"
fi
echo "${s3_hash}" | tee -a ingest-output-sha256sum
done
Expand Down

0 comments on commit 66c283e

Please sign in to comment.