-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (45 loc) · 1.47 KB
/
renameClicks.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
44
45
46
47
48
name: Rename All Clicks and Deploy Pages
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: write
jobs:
rename:
name: Rename and Deploy Pages
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup ffmpeg
uses: FedericoCarboni/setup-ffmpeg@v3
id: setup-ffmpeg
- name: Install Packages
run: |
python -m pip install ffmpeg
python -m pip install pydub
- name: Run Sounds Copier
run: python ./.github/CopySoundsForRename.py
- name: Run File Namer
run: cd .github/FileNamer; python main.py
- name: Copy Output to the Original Folder
run: python .github/CopySoundsForRenamePT2.py
- name: Update Repository
run: |
git config user.name "Sounds Updater"
git config user.email [email protected]
git add .
git commit -m "Update Sounds (renames all multiple click files)" && git push || echo "Nothing to commit, there's no changes."
- name: Compress Into Zip for pages
run: |
for dir in Meme/*/
do
dir=${dir%*/}
7z a ${dir}.zip ${dir}
done
for dir in Useful/*/
do
dir=${dir%*/}
7z a ${dir}.zip ${dir}
done