Skip to content

Commit

Permalink
update download ci
Browse files Browse the repository at this point in the history
  • Loading branch information
luisas committed Feb 17, 2025
1 parent 79d4775 commit e3a4ec2
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/download_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ on:
required: true
default: "dev"
pull_request:
types:
- opened
- edited
- synchronize
branches:
- main
- master
pull_request_target:
branches:
- main
- master
Expand All @@ -29,7 +21,7 @@ env:

jobs:
configure:
runs-on: ubuntu-latest
runs-on: ubuntu-latest{% raw %}
outputs:
REPO_LOWERCASE: ${{ steps.get_repo_properties.outputs.REPO_LOWERCASE }}
REPOTITLE_LOWERCASE: ${{ steps.get_repo_properties.outputs.REPOTITLE_LOWERCASE }}
Expand All @@ -40,7 +32,7 @@ jobs:
run: |
echo "REPO_LOWERCASE=${GITHUB_REPOSITORY,,}" >> "$GITHUB_OUTPUT"
echo "REPOTITLE_LOWERCASE=$(basename ${GITHUB_REPOSITORY,,})" >> "$GITHUB_OUTPUT"
echo "REPO_BRANCH=${{ github.event.inputs.testbranch || 'dev' }}" >> "$GITHUB_OUTPUT"
echo "REPO_BRANCH=${{ github.event.inputs.testbranch || 'dev' }}" >> "$GITHUB_OUTPUT{% endraw %}"
download:
runs-on: gpu
Expand Down Expand Up @@ -73,7 +65,7 @@ jobs:
- name: Download the pipeline
env:
NXF_SINGULARITY_CACHEDIR: ./singularity_container_images
NXF_SINGULARITY_CACHEDIR: ./singularity_container_images{% raw %}
run: |
nf-core pipelines download ${{ needs.configure.outputs.REPO_LOWERCASE }} \
--revision ${{ needs.configure.outputs.REPO_BRANCH }} \
Expand All @@ -85,10 +77,10 @@ jobs:
--download-configuration 'yes'
- name: Inspect download
run: tree ./${{ needs.configure.outputs.REPOTITLE_LOWERCASE }}
run: tree ./${{ needs.configure.outputs.REPOTITLE_LOWERCASE }}{% endraw %}

- name: Inspect container images
run: tree ./singularity_container_images | tee ./container_initial
run: tree ./singularity_container_images | tee ./container_initial{% if test_config %}{% raw %}

- name: Count the downloaded number of container images
id: count_initial
Expand Down Expand Up @@ -120,6 +112,7 @@ jobs:
echo "IMAGE_COUNT_AFTER=$image_count" >> "$GITHUB_OUTPUT"
- name: Compare container image counts
id: count_comparison
run: |
if [ "${{ steps.count_initial.outputs.IMAGE_COUNT_INITIAL }}" -ne "${{ steps.count_afterwards.outputs.IMAGE_COUNT_AFTER }}" ]; then
initial_count=${{ steps.count_initial.outputs.IMAGE_COUNT_INITIAL }}
Expand All @@ -131,4 +124,11 @@ jobs:
exit 1
else
echo "The pipeline can be downloaded successfully!"
fi
fi{% endraw %}
- name: Upload Nextflow logfile for debugging purposes
uses: actions/upload-artifact@v4
with:
name: nextflow_logfile.txt
path: .nextflow.log*
include-hidden-files: true{% endif %}

0 comments on commit e3a4ec2

Please sign in to comment.