Skip to content

Update

Update #155

Workflow file for this run

name: Update
on:
schedule:
- cron: '0 2 * * *'
workflow_dispatch:
push:
branches:
- main
paths:
- ".github/workflows/update.yml"
- "scripts/**"
- "templates/**"
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Update packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python3 scripts/update.py
- name: Commit
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -am "update[bot]: update at $(date "+%Y-%m-%d %H:%M:%S")" || true
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: ${{ github.ref }}