-
-
Notifications
You must be signed in to change notification settings - Fork 308
Closed
Description
Hi, I'm trying to pass the files parameter to the tj-actions/changed-files GitHub Action using an input parameter called markdown_path. However, when I set files to the value of markdown_path, it seems to be ignored entirely.
How should I define and pass this input so that tj-actions/changed-files recognizes it correctly? I'm aiming to reuse this pipeline across multiple repositories, each with different file locations.
I don't know if it is a bug or I just don't know how to properly initialize the input parameter. I tried many different ways - I couldn't make it work.
Thank you!
workflow_call:
inputs:
markdown_path:
required: false
type: string
default: |
**.md
**/**.md
jobs:
upload-docs:
runs-on: ubuntu-latest
steps:
- name: Get all changed markdown files
id: changed-markdown-files
uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46
with:
include_all_old_new_renamed_files: 'true'
# Avoid using single or double quotes for multiline patterns
files: ${{ inputs.markdown_path }}
Metadata
Metadata
Assignees
Labels
No labels