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

Improve handling of events that aren't pull requests #66

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

willgearty
Copy link
Contributor

Currently, it's recommended that the workflow be set to run if a push OR pull_request is made. However, if a push was made to the main branch and there were any new packages that were archived on CRAN, these wouldn't be caught because the script checks against the version on the main branch (so there would never be a diff of archived packages). Now, if the event that triggered the workflow is not a pull request, the workflow fails if there are ANY archived packages, regardless of what the version on main looks like. This also now makes it work for scheduled jobs, so I've added the recommendation that the workflow be scheduled to run once a month.

@willgearty
Copy link
Contributor Author

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.

1 participant