Files
cheatsheet-tldr/.github/workflows/cheatsheets.yaml
2025-12-03 14:54:40 +02:00

36 lines
823 B
YAML

---
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
fetch-depth: 0
- name: Setup git config
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
- name: Build
run: |
echo "Building cheatsheets"
bash .github/run.sh
echo "Done"
- name: Commit and push changes
continue-on-error: true
run: |
git add .
git commit -m "Update cheatsheets"
git push