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

Post update hooks have no effect #3213

Open
MaciejG604 opened this issue Nov 14, 2023 · 5 comments
Open

Post update hooks have no effect #3213

MaciejG604 opened this issue Nov 14, 2023 · 5 comments

Comments

@MaciejG604
Copy link

In the scala-cli repo we have updated our .scala-steward.conf to include:

postUpdateHooks = [{
  command = ["./mill", "-i", "generate-reference-doc.run"],
  commitMessage = "Generate the reference doc"
}]

However, no commits with this message are ever generated e.g. here.
After setting up a separate steward-running repo, the hooks are launched correctly e.g. here.

@alejandrohdezma
Copy link
Member

Hey @MaciejG604, is that command generating new files our updating old ones? Because if that's the case I believe given this new files won't be added, and thus, a commit won't be created.

@MaciejG604
Copy link
Author

Hi, it should only update files that already exists, nothing new added.

@alejandrohdezma
Copy link
Member

🤔 Could you run Steward in debug mode to get more clarity onto what's happening?

@MaciejG604
Copy link
Author

How do I do that?

@alejandrohdezma
Copy link
Member

If you are using the Scala Steward GitHub Action, check Run Scala Steward with step debug logging under Guides.

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