-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (47 loc) · 1.52 KB
/
eq-update.yml
File metadata and controls
47 lines (47 loc) · 1.52 KB
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
46
47
name: Auto EQ Update
on:
schedule:
- cron: "0 12 1 1/1 ?"
workflow_dispatch:
jobs:
data_update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Pull & update submodules
run: |
git submodule update --init
git submodule update --remote
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- run: npm ci
- run: npm run build --if-present
- run: tsc
- run: npm run eq
- run: node barrage.js
- name: Get Current Time
uses: 1466587594/get-current-time@v1.0.0
with:
format: dddd, MMMM Do YYYY
utcOffset: "+08:00"
id: current-time
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
branch: autoupdate/equipment
commit-message: "EQ Update"
committer: GitHub <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
title: "[Auto] EQ Update"
assignees: octo-kumo
reviewers: octo-kumo
body: |
#### Automatic EQ Update `${{ steps.current-time.outputs.formattedTime }}`
Pull Request ${{ env.PULL_REQUEST_NUMBER }}
*This pull request is automatically generated by Github Actions*
labels: data update, automated
- name: Check outputs
run: 'echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"'