-
Notifications
You must be signed in to change notification settings - Fork 1.8k
CI: inline the move-caches script into the action #12213
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
Conversation
How is that currently broken? |
The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left two minor comments
// # Move all the existing cache into another folder, so we only preserve the cache for the current queries. | ||
// mkdir -p ${COMBINED_CACHE_DIR} | ||
// rm -f **/.cache/{lock,size} # -f to avoid errors if the cache is empty. | ||
// # copy the contents of the .cache folders into the combined cache folder. | ||
// cp -r **/.cache/* ${COMBINED_CACHE_DIR}/ || : # ignore missing files | ||
// # clean up the .cache folders | ||
// rm -rf **/.cache/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete?
// # Move all the existing cache into another folder, so we only preserve the cache for the current queries. | |
// mkdir -p ${COMBINED_CACHE_DIR} | |
// rm -f **/.cache/{lock,size} # -f to avoid errors if the cache is empty. | |
// # copy the contents of the .cache folders into the combined cache folder. | |
// cp -r **/.cache/* ${COMBINED_CACHE_DIR}/ || : # ignore missing files | |
// # clean up the .cache folders | |
// rm -rf **/.cache/* |
@@ -5,13 +5,6 @@ on: | |||
branches: [main] | |||
pull_request: | |||
branches: [main] | |||
paths: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why remove these paths?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to trigger QL-for-QL on this PR.
The simplest approach was just to always run QL-for-QL.
That way the action also works when used by another repository that includes
github/codeql
as a submodule.And a drive-by change that enforces that we always run QL-for-QL.