Auto EQ Update #66
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
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 <[email protected]> | |
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 }}"' |