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

hashFiles documentation says you can supply multiple paths, but act doesn't let you #324

Closed
doughsay opened this issue Jul 30, 2020 · 3 comments · Fixed by #411
Closed
Labels

Comments

@doughsay
Copy link

doughsay commented Jul 30, 2020

I'm not sure how new this is, because I know hashFiles used to only allow one path, but the github actions documentation now says you can supply multiple paths: https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#hashfiles

When I try this in act though, I get: [RangeError: expected 1 argument(s); got 3]

My expression is this: ${{ hashFiles('lib/**/*.ex', 'test/**/*.ex', 'mix.lock') }}

EDIT: Another interesting point: in act you can do ${{ hashFiles('{lib/**/*.ex,test/**/*.ex,mix.lock}') }}, but github actions will not recognize the multi-glob pattern.

@djbender
Copy link
Contributor

I can also confirm that this bug exists in act and that the multi-glob patten works in act as a workaround.

@github-actions
Copy link
Contributor

Issue is stale and will be closed in 7 days unless there is new activity

@langston-barrett
Copy link

This is still an issue.

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

Successfully merging a pull request may close this issue.

3 participants