Skip to content

Update convert-todo-list.yml #5

Update convert-todo-list.yml

Update convert-todo-list.yml #5

name: Convert TODO List
on:
push:
branches:
- todo-list
paths:
- TODO.md
- .github/workflows/convert-todo-list.yml
jobs:
convert:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: todo-list
token: ${{ secrets.PAT_TOKEN }}
- name: Install Pandoc
run: |
sudo apt-get install -y pandoc texlive-xetex
- name: Convert Markdown to PDF
run: |
pandoc TODO.md -o todo-list.pdf
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add todo-list.pdf
git commit -m "Update TODO list PDF"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.PAT_TOKEN }}
repository: KarhouTam/FL-bench
branch: todo-list
force: true