diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4b17a14211..233b37aae7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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: @@ -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 @@ -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