-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.1 KB
/
random-gifs.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
43
name: Create Random GIFs
on:
schedule:
- cron: "0 3 1 * *"
push:
branches:
- master
- main
permissions:
contents: write
jobs:
create_random_gifs:
runs-on: ubuntu-latest
env:
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_user: "T3l3sc0p3"
repo_name: "CDN-for-personal-use"
branch: "Kuriyama-Mirai"
directory: "gifs"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
check-latest: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests pyyaml
- name: Create random gifs
run: |
python ".github/script/random_gif.py" "README.md"
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add README.md
git commit -m "Create random GIFs"
git push