Skip to content

Commit e737a64

Browse files
author
Katie Horne
authored
chore: add GH Action to check for old files (coder#277)
1 parent 8775891 commit e737a64

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818

1919
- name: Checkout
2020
uses: actions/checkout@v2
21+
with:
22+
fetch-depth: 0
2123

2224
- name: Cache Node Modules
2325
uses: actions/cache@v2
@@ -39,3 +41,16 @@ jobs:
3941
- name: Formatting
4042
if: always()
4143
run: yarn format:check
44+
45+
- name: Find old files
46+
uses: w3f/action-find-old-files@1.0.1
47+
id: old_files
48+
with:
49+
minAge: 60
50+
dirs: '["."]'
51+
52+
- name: Save file
53+
uses: actions/upload-artifact@v2
54+
with:
55+
name: old-docs
56+
path: ${{ steps.old_files.outputs.files }}

0 commit comments

Comments
 (0)