Skip to content

glob not filtering in post-merge #759

Answered by mrexox
mustafa0x asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @mustafa0x! For the post-merge hook there is no implicit git command to get the changed files. To fix this you can add a files option with the git command that gets the files for filtering:

post-merge:
  commands:
    install-deps:
      files: git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD
      glob: "package.json"
      run: pnpm install

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mustafa0x
Comment options

Answer selected by mustafa0x
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