Skip to content

Update tags.json

Update tags.json #3626

Workflow file for this run

name: test-and-update
on: [push, pull_request]
env:
CI: true
permissions:
contents: read
jobs:
test:
name: "Test on Node.js ${{ matrix.node-version }}"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: yarn install
- name: Test
run: yarn test
- name: Update
if: github.ref == 'refs/heads/gh-pages'
run: |
set -ex
git config --global user.name 'azu'
git config --global user.email '[email protected]'
./tools/update-source-data.sh
./tools/update-realtime.sh
./tools/update-next-draft.sh
npm run discord
env:
GH_TOKEN: ${{ secrets.SHARED_BOT_GITHUB_TOKEN }}
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}