Skip to content

Commit

Permalink
feat: Add cleanup workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jroehl committed Jun 29, 2021
1 parent 637c8fe commit 7f670c8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: 'Cleanup'

on:
schedule:
- cron: '0 0/6 * * *'

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: ci
run: npm ci

- name: cleanup
run: npm run cleanup
env:
GSHEET_CLIENT_EMAIL: ${{ secrets.GSHEET_CLIENT_EMAIL }}
GSHEET_PRIVATE_KEY: ${{ secrets.GSHEET_PRIVATE_KEY }}
TEST_SPREADSHEET_ID: ${{ secrets.TEST_SPREADSHEET_ID }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
"prepack": "rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme --multi",
"test": "nyc mocha \"test/**/*.test.ts\"",
"semantic-release": "semantic-release",
"prepare": "husky install"
"prepare": "husky install",
"cleanup": "bin/clear-testsheet.sh"
},
"types": "lib/index.d.ts"
}

0 comments on commit 7f670c8

Please sign in to comment.