-
Notifications
You must be signed in to change notification settings - Fork 2
/
backup.yml
42 lines (35 loc) · 1.29 KB
/
backup.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: Run posters script
on:
schedule:
- cron: '59 23 * * 4' # Run every Thursday at 11:59 PM
jobs:
run_posters:
runs-on: ubuntu-latest
env: # Add the environment variable here
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Set up GitHub CLI
run: |
echo "machine github.com login $GH_TOKEN" > ~/.netrc
gh config set prompt disabled
- name: Update omigroup
run: |
bash scripts/posters.sh omigroup omigroup 4
bash scripts/create-index.sh
bash scripts/pdf.sh omigroup
git config --global user.name "madjin"
git config --global user.email "[email protected]"
git add -A .
git commit -m "update omigroup weekly notes"
git push origin main
- name: Update omigroup gltf-extensions
run: |
bash scripts/posters.sh omigroup gltf-extensions 4
bash scripts/create-index.sh
bash scripts/pdf.sh gltf-extensions
git config --global user.name "madjin"
git config --global user.email "[email protected]"
git add -A .
git commit -m "update omigroup gltf-extensions notes"
git push origin main