Add update helper script (#117)
* Squashed commit from 'helper' branch * CI: run "update-helper" script on cron * Update index.js * disable proxy test * lint * re-add proxy test with delay * lint * Fix cron time
This commit is contained in:
parent
a1fe4802e6
commit
254dbefcd4
6 changed files with 226 additions and 2 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -14,8 +14,6 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
node-version: [14.x]
|
||||
env:
|
||||
FORCE_BUILD: true
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
|
|
|
|||
24
.github/workflows/update-helper.yml
vendored
Normal file
24
.github/workflows/update-helper.yml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
name: Update Helper
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 */2 * * *"
|
||||
|
||||
jobs:
|
||||
helper:
|
||||
name: update-checker
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@master
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@master
|
||||
with:
|
||||
node-version: 16.0.0
|
||||
- name: Install Github Actions toolkit
|
||||
run: npm i @actions/github
|
||||
# The env vars contain the relevant trigger information, so we don't need to pass it
|
||||
- name: Runs helper
|
||||
run: cd .github/helper-bot && node index.js
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue