Skip to content
This repository was archived by the owner on Mar 2, 2026. It is now read-only.

Commit 963733a

Browse files
committed
Add workflow to remove old artifacts and update build.yml
Added a new GitHub Actions workflow (`remove-old-artifacts.yml`) to clean up artifacts older than 7 days, scheduled to run daily at 1 AM. Updated `build.yml` to adjust artifact naming and set retention to 7 days. Updated `AnyBar.Localization.slnx` to include the new workflow file under `/Solution Items/`.
1 parent 134c7dd commit 963733a

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,5 @@ jobs:
5959
uses: actions/upload-artifact@v5
6060
with:
6161
name: AnyBar.Localization
62+
retention-days: 7
6263
path: AnyBar.Localization/bin/Release
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Remove old artifacts
2+
3+
on:
4+
schedule:
5+
# Every day at 1am
6+
- cron: '0 1 * * *'
7+
8+
jobs:
9+
remove-old-artifacts:
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 10
12+
13+
# For private repos
14+
permissions:
15+
actions: write
16+
17+
steps:
18+
- name: Remove old artifacts
19+
uses: c-hive/gha-remove-artifacts@v1.4.0
20+
with:
21+
age: '7 days' # '<number> <unit>', e.g. 5 days, 2 years, 90 seconds, parsed by Moment.js
22+
# Optional inputs
23+
# skip-tags: true
24+
# skip-recent: 5

AnyBar.Localization.slnx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<File Path=".github/FUNDING.yml" />
55
<File Path=".github/workflows/build.yml" />
66
<File Path=".github/workflows/publish.yml" />
7+
<File Path=".github/workflows/remove-old-artifacts.yml" />
78
<File Path="global.json" />
89
<File Path="LICENSE" />
910
<File Path="README.md" />

0 commit comments

Comments
 (0)