-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace Github environment usage in Download Action #3351
base: dev
Are you sure you want to change the base?
Replace Github environment usage in Download Action #3351
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 1 out of 1 changed files in this pull request and generated no suggestions.
Comments skipped due to low confidence (2)
nf_core/pipeline-template/.github/workflows/download_pipeline.yml:32
- The raw tag '{% raw %}' seems out of place and might cause unintended behavior. It should be removed or corrected.
runs-on: ubuntu-latest{% raw %}
nf_core/pipeline-template/.github/workflows/download_pipeline.yml:38
- The raw tag '{% endraw %}' seems out of place and might cause unintended behavior. It should be removed or corrected.
- name: Install Nextflow{% endraw %}
☝🏻 💩 |
echo "{% raw %}REPO_BRANCH=${{ github.event.inputs.testbranch || 'dev' }}" >> ${GITHUB_ENV} | ||
echo "REPO_LOWERCASE=${GITHUB_REPOSITORY,,}" >> "$GITHUB_OUTPUT" | ||
echo "REPOTITLE_LOWERCASE=$(basename ${GITHUB_REPOSITORY,,})" >> "$GITHUB_OUTPUT" | ||
echo "{% raw %}REPO_BRANCH=${{ github.event.inputs.testbranch || 'dev' }}" >> "$GITHUB_OUTPUT" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
echo "{% raw %}REPO_BRANCH=${{ github.event.inputs.testbranch || 'dev' }}" >> "$GITHUB_OUTPUT" | |
echo "{% raw %}REPO_BRANCH=${{ github.event.inputs.testbranch || 'dev' }}" >> "$GITHUB_OUTPUT"{% endraw %} |
|
||
- name: Run the downloaded pipeline (stub) | ||
id: stub_run_pipeline | ||
continue-on-error: true | ||
env: | ||
NXF_SINGULARITY_CACHEDIR: ./singularity_container_images | ||
NXF_SINGULARITY_HOME_MOUNT: true | ||
run: nextflow run ./${{ env.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ env.REPO_BRANCH }}) -stub -profile test,singularity --outdir ./results | ||
run: nextflow run ./${{needs.configure.outputs.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ needs.configure.outputs.REPO_BRANCH }}) -stub -profile test,singularity --outdir ./results | ||
- name: Run the downloaded pipeline (stub run not supported) | ||
id: run_pipeline | ||
if: ${{ job.steps.stub_run_pipeline.status == failure() }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if: ${{ job.steps.stub_run_pipeline.status == failure() }} | |
if: ${{ steps.stub_run_pipeline.outcome == 'failure' }} |
According to the docs job
context has status
, but not steps
According to the new GitHub Actions documentation,
$GITHUB_OUTPUT
instead of the environment should be used now to pass around values between steps and jobs.PR checklist
CHANGELOG.md
is updateddocs
is updated