-
Notifications
You must be signed in to change notification settings - Fork 15
45 lines (37 loc) · 1.03 KB
/
check-updates.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Check plugin updates
on:
schedule:
- cron: '0 0 * * *' # every day at midnight
push:
branches:
- master
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install Dependencies
run: npm install
working-directory: ./tools
- name: Restore correct mtime
run: |
sudo apt install git-restore-mtime
git restore-mtime
- name: Set force environment variable if manually triggered
if: github.event_name == 'workflow_dispatch'
run: echo "FORCE_RENDER=true" >> $GITHUB_ENV
- name: Update plugins list
run: npm run update-all
working-directory: ./tools
- name: Commit & Push changes
uses: Andro999b/push@v1.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}