Skip to content

Commit

Permalink
add checkout step before composite action
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu committed Apr 9, 2024
1 parent 4467b43 commit c351ea1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ jobs:
outputs:
# Expose detected tags as 'modules' and 'workflows' output variables
paths: ${{ steps.list.outputs.changes }}
modules: ${{ steps.outputs.outputs.modules }}
subworkflows: ${{ steps.outputs.outputs.subworkflows}}
modules: ${{ steps.components.outputs.modules }}
subworkflows: ${{ steps.components.outputs.subworkflows}}

steps:
- uses: actions/setup-python@v4
Expand Down Expand Up @@ -139,15 +139,15 @@ jobs:
) >> $GITHUB_OUTPUT
- name: Separate modules and subworkflows
id: outputs
id: components
run: |
echo modules=$(echo '${{ steps.list.outputs.changes }}' | jq -c '. | map(select(contains("modules"))) | map(gsub("modules/nf-core/"; ""))') >> $GITHUB_OUTPUT
echo subworkflows=$(echo '${{ steps.list.outputs.changes }}' | jq '. | map(select(contains("subworkflows"))) | map(gsub("subworkflows/nf-core/"; ""))') >> $GITHUB_OUTPUT
- name: debug
run: |
echo ${{ steps.outputs.outputs.modules }}
echo ${{ steps.outputs.outputs.subworkflows }}
echo ${{ steps.components.outputs.modules }}
echo ${{ steps.components.outputs.subworkflows }}
nf-core-lint-modules:
runs-on: ${{ github.event.inputs.runners || 'self-hosted' }}
Expand All @@ -163,6 +163,7 @@ jobs:
"${{ fromJson(needs.nf-test-changes.outputs.modules) }}",
]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: ./.github/actions/nf-core-lint
with:
component_type: "module"
Expand All @@ -182,6 +183,7 @@ jobs:
"${{ fromJson(needs.nf-test-changes.outputs.subworkflows) }}",
]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: ./.github/actions/nf-core-lint
with:
component_type: "subworkflow"
Expand Down

0 comments on commit c351ea1

Please sign in to comment.