From 1f54dc566bcbfe62b90a8497c7a8de72d9aa20c9 Mon Sep 17 00:00:00 2001 From: Katie Horne Date: Thu, 15 Apr 2021 12:48:45 -0500 Subject: [PATCH 1/3] Add check for old files --- .github/workflows/ci.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 80c640713..ee280823a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,6 +18,8 @@ jobs: - name: Checkout uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Cache Node Modules uses: actions/cache@v2 @@ -39,3 +41,16 @@ jobs: - name: Formatting if: always() run: yarn format:check + + - name: Find old files + uses: w3f/action-find-old-files@1.0.1 + id: old_files + with: + minAge: 14 + dirs: '["admin", "cli", "environments", "guides", "images", "setup"]' + + - name: Save file + uses: actions/upload-artifact@v2 + with: + name: old-docs + path: ${{ steps.old_files.outputs.files }} From 07050fce1951eb50ed11c85912bc9d489194f368 Mon Sep 17 00:00:00 2001 From: Katie Horne Date: Thu, 15 Apr 2021 12:50:58 -0500 Subject: [PATCH 2/3] Bump minAge --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ee280823a..c022fad26 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -46,7 +46,7 @@ jobs: uses: w3f/action-find-old-files@1.0.1 id: old_files with: - minAge: 14 + minAge: 60 dirs: '["admin", "cli", "environments", "guides", "images", "setup"]' - name: Save file From dd57c338ca832f7f275c98042f105684511233a7 Mon Sep 17 00:00:00 2001 From: Katie Horne Date: Thu, 15 Apr 2021 13:31:04 -0500 Subject: [PATCH 3/3] Scan all directories --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c022fad26..c0042a6cb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -47,7 +47,7 @@ jobs: id: old_files with: minAge: 60 - dirs: '["admin", "cli", "environments", "guides", "images", "setup"]' + dirs: '["."]' - name: Save file uses: actions/upload-artifact@v2