Skip to content

Get the latest video collection #826

Get the latest video collection

Get the latest video collection #826

Workflow file for this run

name: Get the latest video collection
on:
push:
branches: ['master']
pull_request:
branches: ['master']
schedule:
- cron: '30 */6 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Set beijing TimeZone
uses: szenius/[email protected] # 设置虚拟环境的时区,可更改时区
with:
timezoneLinux: 'Asia/Shanghai'
timezoneMacos: 'Asia/Singapore'
- name: Install dependencies
run: npm install
# - name: Install Playwright browsers
# run: npx playwright install --with-deps
- name: Run bilibili && douyin video
run: npm run dev:pw:duyi
- name: Generate README.md
run: npm run generate:README
- name: Update Docs
run: npm run docs:generate
- name: Format Code
run: npm run format
- name: 'Commit'
uses: EndBug/add-and-commit@v4
with:
author_name: lonewolfyx
author_email: [email protected]
message: 'Update the latest DuYi video collection'
add: '.'
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}