-
-
Notifications
You must be signed in to change notification settings - Fork 83
42 lines (36 loc) · 1003 Bytes
/
convert-todo-list.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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