mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-04-28 20:23:24 +08:00
Compare commits
1 Commits
drawerpage
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d2f789bdbd |
25
.github/workflows/remove-old-artifacts.yml
vendored
Normal file
25
.github/workflows/remove-old-artifacts.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
name: Remove old artifacts
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
# Every day at 1am
|
||||||
|
- cron: '0 1 * * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
remove-old-artifacts:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
|
|
||||||
|
# For private repos
|
||||||
|
permissions:
|
||||||
|
actions: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Remove old artifacts
|
||||||
|
uses: c-hive/gha-remove-artifacts@v1
|
||||||
|
with:
|
||||||
|
age: '15 days' # '<number> <unit>', e.g. 5 days, 2 years, 90 seconds, parsed by Moment.js
|
||||||
|
# Optional inputs
|
||||||
|
skip-tags: true
|
||||||
|
skip-recent: 5
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
<File Path=".github/workflows/pack.yml"/>
|
<File Path=".github/workflows/pack.yml"/>
|
||||||
<File Path=".github/workflows/publish.yml"/>
|
<File Path=".github/workflows/publish.yml"/>
|
||||||
<File Path=".github/workflows/release-tag.yml"/>
|
<File Path=".github/workflows/release-tag.yml"/>
|
||||||
|
<File Path=".github/workflows/remove-old-artifacts.yml"/>
|
||||||
</Folder>
|
</Folder>
|
||||||
<Folder Name="/Solution Items/Demo/">
|
<Folder Name="/Solution Items/Demo/">
|
||||||
<File Path="demo/Directory.Packages.props"/>
|
<File Path="demo/Directory.Packages.props"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user