Update data/2024/12/index.json #3693
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: 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 }} |