mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[ci] Move nightly cleanup task to monorepo (#7050)
This commit is contained in:
20
.github/workflows/aql/wpilib-generic-gradle-cache_unused.aql
vendored
Normal file
20
.github/workflows/aql/wpilib-generic-gradle-cache_unused.aql
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"files": [
|
||||
{
|
||||
"aql": {
|
||||
"items.find": {
|
||||
"repo": "wpilib-generic-gradlecache",
|
||||
"$or":[
|
||||
{
|
||||
"stat.downloaded": { "$before":"1mo" }
|
||||
},
|
||||
{
|
||||
"stat.downloaded": { "$eq":null }
|
||||
}
|
||||
],
|
||||
"created": { "$before":"1mo" }
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
29
.github/workflows/aql/wpilib-mvn-development_unused.aql
vendored
Normal file
29
.github/workflows/aql/wpilib-mvn-development_unused.aql
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"files": [
|
||||
{
|
||||
"aql": {
|
||||
"items.find": {
|
||||
"repo": "wpilib-mvn-development",
|
||||
"path": { "$nmatch":"*edu/wpi/first/thirdparty*" },
|
||||
"$or":[
|
||||
{
|
||||
"artifact.module.build.name": { "$eq":"allwpilib" }
|
||||
},
|
||||
{
|
||||
"artifact.module.build.name": { "$eq":"combiner" }
|
||||
}
|
||||
],
|
||||
"$or":[
|
||||
{
|
||||
"stat.downloaded": { "$before":"3mo" }
|
||||
},
|
||||
{
|
||||
"stat.downloaded": { "$eq":null }
|
||||
}
|
||||
],
|
||||
"created": { "$before":"3mo" }
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
33
.github/workflows/artifactory-nightly-cleanup.yml
vendored
Normal file
33
.github/workflows/artifactory-nightly-cleanup.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Artifactory Nightly Cleanup
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '15 2 * * *'
|
||||
|
||||
jobs:
|
||||
wpilib-mvn-development_unused_cleanup:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'wpilibsuite/allwpilib' && github.ref == 'refs/heads/main'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: jfrog/setup-jfrog-cli@v4
|
||||
env:
|
||||
JF_ENV_1: ${{ secrets.ARTIFACTORY_CLI_SECRET }}
|
||||
- name: Cleanup
|
||||
run: jf rt del --spec=.github/workflows/aql/wpilib-mvn-development_unused.aql
|
||||
|
||||
wpilib-generic-gradle-cache_unused_cleanup:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'wpilibsuite/allwpilib' && github.ref == 'refs/heads/main'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: jfrog/setup-jfrog-cli@v4
|
||||
env:
|
||||
JF_ENV_1: ${{ secrets.ARTIFACTORY_CLI_SECRET }}
|
||||
- name: Cleanup
|
||||
run: jf rt del --spec=.github/workflows/aql/wpilib-generic-gradle-cache_unused.aql
|
||||
Reference in New Issue
Block a user