Skip to content

Commit

Permalink
Squawk action can handle globbing of files (#8)
Browse files Browse the repository at this point in the history
When a glob is passed that targets multiple files, bash is
expanding the wildcard before compgen is run, resulting in only
one file getting passed to squwak. Quoting prevents bash from trying
to expand the glob early.
  • Loading branch information
grantcooksey authored Dec 5, 2023
1 parent 8c18885 commit bf6f9d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ runs:
export SQUAWK_GITHUB_REPO_OWNER=$(jq --raw-output .repository.owner.login "$GITHUB_EVENT_PATH")
export SQUAWK_GITHUB_REPO_NAME=$(jq --raw-output .repository.name "$GITHUB_EVENT_PATH")
export SQUAWK_GITHUB_PR_NUMBER=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
squawk --verbose upload-to-github $(compgen -G ${{inputs.pattern}})
squawk --verbose upload-to-github $(compgen -G "${{inputs.pattern}}")
shell: bash

0 comments on commit bf6f9d1

Please sign in to comment.