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 #124

Closed

Conversation

WeiqunZhang
Copy link
Member

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 enabled auto-merge (squash) August 29, 2024 21:20
@WeiqunZhang WeiqunZhang enabled auto-merge (squash) August 29, 2024 21:41
@WeiqunZhang WeiqunZhang marked this pull request as draft August 29, 2024 23:38
auto-merge was automatically disabled August 29, 2024 23:38

Pull request was converted to draft

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