Get the latest video collection #819
This file contains hidden or 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: 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 }} |