Skip to content

Update and publish #53567

Update and publish

Update and publish #53567

Workflow file for this run

name: Update and publish
on:
schedule:
- cron: '*/5 * * * *'
push:
branches:
- main
workflow_dispatch:
pull_request:
defaults:
run:
shell: bash
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Python dependencies
run: pip3 install -U -r requirements.txt
- name: Update
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mkdir public
python -u merge_list.py --self ${{ github.repository }}
- name: Setup pages
if: github.event_name != 'pull_request'
uses: actions/configure-pages@v4
- name: Upload pages artifact
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v3
with:
path: public
- name: Upload artifacts
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v4
with:
path: public
deploy:
if: github.event_name != 'pull_request'
needs: build
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4