Skip to content

Commit 4ea67cd

Browse files
committed
Initial commit
0 parents  commit 4ea67cd

24 files changed

Lines changed: 99 additions & 0 deletions

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_style = tab
7+
indent_size = 4
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Update the README.md Gallery Preview
2+
3+
on:
4+
push:
5+
paths:
6+
- 'Collection/**.jpg'
7+
- 'Collection/**.png'
8+
- 'Collection/**.jpeg'
9+
- 'Collection/**.webp'
10+
- 'generate-gallery.py'
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
permissions:
17+
contents: write
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v3
22+
23+
- name: Set up Python
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: '3.x'
27+
28+
- name: Run Gallery Script
29+
run: python generate-gallery.py
30+
31+
- name: Commit and Push changes
32+
run: |
33+
git config --global user.name 'github-actions[bot]'
34+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
35+
git add README.md
36+
git diff --quiet && git diff --staged --quiet || (git commit -m "Auto-update gallery preview" && git push)

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Private/
2+
Thumbs.db
3+
Desktop.ini

Collection/arknights-amiya.jpg

907 KB
Loading

Collection/asetto-corsa-01.png

2.56 MB
Loading

Collection/bonsai-tree-bw.png

4.88 MB
Loading

Collection/el-capitan.jpg

8.73 MB
Loading

Collection/frieren-01.jpg

681 KB
Loading

Collection/frieren-02.jpg

9.61 MB
Loading

Collection/gruvbox-room.png

806 KB
Loading

0 commit comments

Comments
 (0)