Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default value for within variable is not working #11

Open
McPringle opened this issue May 2, 2024 · 0 comments
Open

default value for within variable is not working #11

McPringle opened this issue May 2, 2024 · 0 comments

Comments

@McPringle
Copy link

I tried to use your action but it is not working as intended. This is the relevant part of my own action:

jobs:
  check:
    runs-on: ubuntu-latest
    outputs:
      changes: ${{ steps.nightly-check.outputs.changes }}
    steps:
      - id: nightly-check
        name: Check for changes since last nightly
        uses: lukecarr/[email protected]

As you can see, I don't have within specified, so it should use your default value. But the variable is empty as you can see in the output of your action (see empty after value):

test -z $(git rev-list --after="" abd68737727b4f5624c055f5c47be1206e89dc99) && echo "changes=true" >> $GITHUB_OUTPUT

Then I tried to specify the within value in my action. Same problem, the variable is still empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant