Update convert-todo-list.yml #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "[email protected]" | |
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 |