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

chore: verify lockfile on PR, commit on push to main #877

Conversation

LogFlames
Copy link
Member

No description provided.

@LogFlames LogFlames linked an issue Sep 6, 2024 that may be closed by this pull request
@LogFlames
Copy link
Member Author

This might not be correct, I want to verify it actually throws an error if the lockfile is incorrect before merge

@@ -1,6 +1,9 @@
name: Lockfile
on:
pull_request:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should remove "pull_request" here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we separate it into two workflows, one that commits a new lockfile on push to main, and one that verifies that the PR has a correct lockfile (and could commit a new one to the source branch if the PR is this repo).

We then technically do it twice and the one that runs on pushes to main would be a safety if something would get merged without an updated lockfile.

Or skip validation of the lockfile on PRs and simply update it on every push to main?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we separate it into two workflows

yes, completely, that would be much cleaner. and the modification one would be removed once renovate will be able to update both the pom and the lockfile at the same time.

@LogFlames
Copy link
Member Author

LogFlames commented Sep 8, 2024

See #881 and #880

@LogFlames LogFlames force-pushed the 875-update-ci-so-that-it-works-for-pr-from-external-forks-contributors branch from 89901f7 to 6b88db8 Compare September 11, 2024 11:52
…ks-contributors' of github.com:chains-project/maven-lockfile into 875-update-ci-so-that-it-works-for-pr-from-external-forks-contributors
@LogFlames LogFlames merged commit 8c5bc0c into main Sep 11, 2024
9 checks passed
@LogFlames LogFlames deleted the 875-update-ci-so-that-it-works-for-pr-from-external-forks-contributors branch September 11, 2024 11:58
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

Successfully merging this pull request may close these issues.

update CI so that it works for PR from external forks / contributors
2 participants