Skip to content

Commit

Permalink
ci: Skip outputs if they're empty
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Nov 20, 2024
1 parent 1aac924 commit baf417f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,21 @@ jobs:
list-files: "json"

- name: Fetch module tags
id: tags
id: module-tags
if: steps.filter.outputs.modules == 'true'
run: |
echo "modules=${{ steps.filter.outputs.modules }}" >> $GITHUB_OUTPUT
- name: Fetch subworkflows tags
id: subworkflow-tags
if: steps.filter.outputs.subworkflows == 'true'
run: |
echo "subworkflows=${{ steps.filter.outputs.subworkflows }}" >> $GITHUB_OUTPUT
- name: debug
run: |
echo ${{ steps.tags.outputs.modules }}
echo ${{ steps.tags.outputs.subworkflows }}
echo ${{ steps.module-tags.outputs.modules }}
echo ${{ steps.subworkflow-tags.outputs.subworkflows }}
nf-core-lint-modules:
runs-on: ${{ github.event.inputs.runners || 'self-hosted' }}
Expand Down

0 comments on commit baf417f

Please sign in to comment.