Skip to content

Get directory changed folders and exclude parent folder #1971

Answered by jackton1
lays147 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @lays147 there are a couple of approaches you can take

  1. Specify the path input kong-plugins but note the patterns would need to be changed to "**" or can be omitted since you will detect only changed files within the kong-plugins folder.
...
      - name: Get changed files in the kong-plugins folder
        id: changed-files
        uses: tj-actions/changed-files@v42
        with:
          path: kong-plugins
          json: true
          escape_json: false
          dir_names: true
          dir_names_exclude_current_dir: true
  1. Post-process the output from this action and filter out the kong-plugins folder
...
      - name: Filter out parent directory from output
        id: filter…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jackton1
Comment options

You must be logged in to vote
2 replies
@jackton1
Comment options

@lays147
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants