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

Improvement: Input parameter to only check files changed in a pull request #207

Open
ModeSevenIndustrialSolutions opened this issue Jan 15, 2025 · 0 comments

Comments

@ModeSevenIndustrialSolutions

I've written a thin wrapper that only checks files changed in a pull request.

The action code and README.md is here:
https://github.com/os-climate/osc-github-devops/tree/main/.github/actions/pinned-versions-action

The action code here:
https://github.com/os-climate/osc-github-devops/blob/main/.github/actions/pinned-versions-action/action.yaml

It leverages an upstream "changed files" action from: tj-actions/changed-files

It should be possible to add this functionality to the base action by creating a new input variable and importing some of the action code. I've implemented the required shim functionality using shell code which was somewhat hacked together. I've no expertise in Javascript, but porting this over might not involve much effort?

I'm open to idea of collaborating on this topic as a future enhancement.

BTW, I am currently employed by the Linux Foundation and I've started using this action in some of our public repositories.

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

1 participant