Skip to content

Commit

Permalink
chore: format variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Nov 8, 2024
1 parent 7a2fe26 commit 0a387e9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
modules: ${{ steps.set-modified-modules.outputs.modules }}
modulesCount: ${{ steps.set-modified-modules-count.outputs.modulesCount }}
modules_count: ${{ steps.set-modified-modules-count.outputs.modules_count }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
Expand All @@ -34,16 +34,16 @@ jobs:

- id: set-modified-modules-count
name: Set all modified modules count
run: echo "modulesCount=$(echo ${{ toJSON(steps.set-modified-modules.outputs.modules) }} | jq '. | length')" >> GITHUB_OUTPUT
run: echo "modules_count=$(echo ${{ toJSON(steps.set-modified-modules.outputs.modules) }} | jq '. | length')" >> $GITHUB_OUTPUT

- name: Print out the modules to be used
run: |
echo "${{ steps.set-modified-modules-count.outputs.modulesCount }} modules in the build"
echo "${{ steps.set-modified-modules-count.outputs.modules_count }} modules in the build"
echo "${{ steps.set-modified-modules.outputs.modules }}"
lint:
# only run if there are modules to lint
if: ${{ needs.detect-modules.outputs.modulesCount > 0 }}
if: ${{ needs.detect-modules.outputs.modules_count > 0 }}
needs: detect-modules
strategy:
matrix:
Expand All @@ -57,7 +57,7 @@ jobs:

test:
# only run if there are modules to test
if: ${{ needs.detect-modules.outputs.modulesCount > 0 }}
if: ${{ needs.detect-modules.outputs.modules_count > 0 }}
needs:
- detect-modules
- lint
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for sonarsource/sonarcloud-github-action to determine which PR to decorate
if: ${{ github.ref_name == 'main' && github.repository_owner == 'testcontainers' && needs.detect-modules.outputs.modulesCount > 0 }}
if: ${{ github.ref_name == 'main' && github.repository_owner == 'testcontainers' && needs.detect-modules.outputs.modules_count > 0 }}
needs:
- detect-modules
- test
Expand Down

0 comments on commit 0a387e9

Please sign in to comment.