-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (32 loc) · 1.04 KB
/
update.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
name: Update check
on:
workflow_dispatch:
schedule:
- cron: '0 * * * *'
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y git curl jq
- name: 'Get Previous tag'
id: previoustag
uses: 'WyriHaximus/github-action-get-previous-tag@v1'
with:
fallback: 0000000
- name: 'Run the update script'
id: update
env:
PREVIOUS_TAG: '${{ steps.previoustag.outputs.tag }}'
DOCKER_TOKEN: ${{secrets.DOCKER_TOKEN}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
npm install
node ./ci/update.mjs