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

No error with misspelled output steps.cache.outputs.primary-key #365

Open
andreasabel opened this issue Oct 16, 2023 · 0 comments
Open

No error with misspelled output steps.cache.outputs.primary-key #365

andreasabel opened this issue Oct 16, 2023 · 0 comments

Comments

@andreasabel
Copy link

andreasabel commented Oct 16, 2023

Thanks for actionlint, made my life so much better!

Here is problem with checking the outputs of a step:
The actions/cache action has output cache-primary-key, but I misspelled it as primary-key, not getting a warning from actionlint.

    - uses: actions/cache/restore@v3
      id:   cache
      with:
        path: ...
        key: ...
        restore-keys: ...
...
    - if:   ${{ !steps.cache.outputs.cache-hit }}
      uses: actions/cache/save@v3
      with:
        path: ...
        key: ${{ steps.cache.outputs.primary-key }}

Can actionlint track the valid outputs of a previous step?

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