Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

GH actions: purge-expired-artifacts.yml (#4565)

Juerg B3c2f82f85653
diff --git a/.github/workflows/purge-expired-artifacts.yml b/.github/workflows/purge-expired-artifacts.yml
new file mode 100644
index 00000000..44692d7d
--- /dev/null
+++ b/.github/workflows/purge-expired-artifacts.yml
@@ -0,0 +1,20 @@
+# Deletes expired artifacts, which are not removed automatically by github.
+
+name: 'Purge expired artifacts'
+
+on:
+ schedule:
+ - cron: '0 1 * * *'
+
+ # Allows you to run this workflow manually from the Actions tab
+ workflow_dispatch:
+
+jobs:
+ purge-artifacts:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: LKP-RnD/purge-expired-artifacts-action@v4
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+ repo_to_purge: "mochajs/mocha"
+ dry_run: "false"