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

Simplify cache cleanup actions #256

Closed

Conversation

WeiqunZhang
Copy link
Collaborator

For the CleanUpCache workflow run triggered by PR workflows, there is a simple way of getting the PR number. The full event webhook payload is available as a json file and it contains the number of the triggering PR. So we don't need to upload the PR number as an artifact.

For the post-PR cleanup, we could also clean up the cache directly without uploading the PR number and triggering a workflow run for cleaning.

For the CleanUpCache workflow run triggered by PR workflows, there is a
simple way of getting the PR number. The full event webhook payload is
available as a json file and it contains the number of the triggering PR. So
we don't need to upload the PR number as an artifact.

For the post-PR cleanup, we could also clean up the cache directly without
uploading the PR number and triggering a workflow run for cleaning.
@WeiqunZhang WeiqunZhang requested a review from asalmgren August 29, 2024 21:53
@WeiqunZhang WeiqunZhang marked this pull request as draft August 29, 2024 23:38
@WeiqunZhang
Copy link
Collaborator Author

Unfortunately, the changes only work for PRs from the same repo.

@WeiqunZhang WeiqunZhang deleted the cleanup_cache branch August 30, 2024 01:59
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