Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to get unstaged / modified files? #983

Closed
shinebayar-g opened this issue Feb 14, 2023 · 3 comments
Closed

Is it possible to get unstaged / modified files? #983

shinebayar-g opened this issue Feb 14, 2023 · 3 comments

Comments

@shinebayar-g
Copy link

I've an use case like this. cdk8s cli generates yaml files based on source code change. I'm running cdk8s command on each commit to master branch to ensure there's no configuration drift. Is it possible to use this action to know which files are modified?
Based on the commit I may or may not get any changed files. If this action is able to detect which files are changed, that'd be helpful. Right now it looks like it's not detecting changed files during the workflow. My workflow looks like this:

- uses: actions/checkout@v3
  with:
    fetch-depth: 2

- run: cdk8s synth

- name: Is there a change?
  id: detect-manifest-change
  uses: tj-actions/changed-files@v35
  with:
    files: manifests/**

Currently even though cdk8s synth is modifying files in manifests/ folder, action isn't seeing the change.

@github-actions
Copy link
Contributor

Thanks for reporting this issue, don't forget to star this project if you haven't already to help us reach a wider audience.

@jackton1
Copy link
Member

jackton1 commented Feb 15, 2023

@shinebayar-g Yes I believe the action you’ll need is https://github.com/tj-actions/verify-changed-files which detects unstaged files.

@jackton1 jackton1 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 15, 2023
@shinebayar-g
Copy link
Author

Oh didn't know there was another one, Thanks a bunch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants