From 3120334488f979c7d9017cf0c63099c9c8e334f8 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 f1f7ae5e84..87a218446b 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