Skip to content

Update

Update #971

Workflow file for this run

---
name: Update
on: # yamllint disable-line rule:truthy
push:
branches:
- main
schedule:
- cron: 0 18 * * * # Every thursday at 6pm
workflow_dispatch:
env:
BRANCH_PREFIX: update/
DEFAULT_BRANCH: main
jobs:
update-best-of-list:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
persist-credentials: false
fetch-depth: 0
- name: update-best-of-list
uses: best-of-lists/best-of-update-action@v0.8.5
with:
libraries_key: ${{ secrets.LIBRARIES_KEY }}
github_key: ${{ secrets.GITHUB_TOKEN }}
- name: Clean README.md
run: |
./.clean_readme.sh
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git diff-index --quiet HEAD \
|| git commit -m "chore: update README.md"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main