From 1b9d8e96903d95c99b326979fe45b367377b3262 Mon Sep 17 00:00:00 2001 From: mirpedrol Date: Thu, 10 Oct 2024 15:01:34 +0200 Subject: [PATCH] use env variable to check nf-core outdated --- .../.github/workflows/template_version_comment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nf_core/pipeline-template/.github/workflows/template_version_comment.yml b/nf_core/pipeline-template/.github/workflows/template_version_comment.yml index f1f7ae5e8..87a218446 100644 --- a/nf_core/pipeline-template/.github/workflows/template_version_comment.yml +++ b/nf_core/pipeline-template/.github/workflows/template_version_comment.yml @@ -26,12 +26,12 @@ jobs: - name: Check nf-core outdated id: nf_core_outdated - run: pip list --outdated + run: echo "OUTPUT=$(pip list --outdated | grep nf-core)" >> ${GITHUB_ENV} - name: Post nf-core template version comment uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2 if: | - contains(steps.nf_core_outdated.outputs.stdout, 'nf-core') + contains(env.OUTPUT, 'nf-core') with: repo-token: ${{ secrets.NF_CORE_BOT_AUTH_TOKEN }} allow-repeats: false