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

Run arbitrary steps before creating PR #48

Open
nomeata opened this issue Aug 26, 2021 · 2 comments
Open

Run arbitrary steps before creating PR #48

nomeata opened this issue Aug 26, 2021 · 2 comments

Comments

@nomeata
Copy link

nomeata commented Aug 26, 2021

In one of my projects, whenever a certain dependency is bumped, I typically want to run a command like

nix-update --version=skip drun

to bump a cargoSha256 hash in one of the nix file.

It would be good if I could pass an arbitrary script to niv-updater-action to run after bumping the niv, but before creating the commit, to include other changes in the PR.

@knl
Copy link
Owner

knl commented Aug 26, 2021

Hi @nomeata, this sounds interesting, but I won't be able to work on it until end of September. In the meantime, could you maybe have your arbitrary script run after niv-updater-action and amend the previous commit?

@nomeata
Copy link
Author

nomeata commented Aug 26, 2021

This is not urgent or anything. I am mostly noting down the idea here.

It seems that you are pushing the change via XPUT via the API, rather than using local git to create the commit, which may make things harder.

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

No branches or pull requests

2 participants