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

Merged
merged 2 commits into from
Aug 29, 2024

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 requested a review from ax3l August 29, 2024 21:14
@ax3l ax3l self-assigned this Aug 29, 2024
@ax3l ax3l added the component: tests tests and examples label Aug 29, 2024
Copy link
Member

@ax3l ax3l left a comment

Choose a reason for hiding this comment

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

Thank you! :)

@ax3l ax3l enabled auto-merge (squash) August 29, 2024 21:18
@WeiqunZhang
Copy link
Member Author

I forgot to remove the upload pr number job.

@WeiqunZhang WeiqunZhang enabled auto-merge (squash) August 29, 2024 21:35
@WeiqunZhang WeiqunZhang merged commit e334889 into AMReX-Codes:development Aug 29, 2024
17 of 18 checks passed
ax3l added a commit that referenced this pull request Aug 29, 2024
ax3l added a commit that referenced this pull request Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tests tests and examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants