Skip to content

Problem when echoing the count #7

@denis-ev

Description

@denis-ev

It might just be me, but I try to use the count and I cannot get the count to be shown outside of your action.
In the action I can see the count is 11, but the next function does not echo the count and the if action step is just getting skipped.

    - name: Get Commit Difference Count Between Two Branches
        id: cdc
        uses: jessicalostinspace/commit-difference-action@v1.0.0
        with:
          base-branch: 'master'
          secondary-branch: 'dev'
      - name: Echo count
        run: |
          echo ${{ steps.cdc.commit-difference-count }}
      - name: If action step
        if: "steps.cdc.commit-difference-count >= 10"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions