Skip to content

Commit

Permalink
Add support for using github's glob pattern syntax
Browse files Browse the repository at this point in the history
Fixes: #264 #265
  • Loading branch information
jackton1 committed Jan 3, 2022
1 parent 7752404 commit ecc724c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ runs:
env:
INPUT_FILES: ${{ inputs.files }}
INPUT_FILES_FROM_SOURCE_FILE: ${{ inputs.files_from_source_file }}
- name: Glob match
uses: tj-actions/glob@v1
id: glob
with:
files: ${{ steps.source-input-files.outputs.files }}
- run: |
# "Set base sha..."
if [[ -n "${{ inputs.base_sha }}" ]]; then
Expand All @@ -132,7 +137,7 @@ runs:
INPUT_SHA: ${{ inputs.sha }}
INPUT_BASE_SHA: ${{ steps.base-sha.outputs.base_sha }}
INPUT_TOKEN: ${{ inputs.token }}
INPUT_FILES: ${{ steps.source-input-files.outputs.files }}
INPUT_FILES: ${{ steps.glob.outputs.paths }}
INPUT_SEPARATOR: ${{ inputs.separator }}
INPUT_PATH: ${{ inputs.path }}
Expand Down

0 comments on commit ecc724c

Please sign in to comment.