-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (49 loc) · 1.67 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
49
50
51
52
name: Rename All Clicks
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: write
jobs:
rename:
name: Rename Click Sounds
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."
trigger:
name: Trigger site build
runs-on: ubuntu-latest
needs: ["rename"]
if: always()
steps:
- uses: actions/github-script@v6
with:
github-token: ${{ secrets.COOP_BOT_PUSH_BIN_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'clicksounds',
repo: 'geode-clicksound',
workflow_id: 'update-sound-module.yml',
ref: 'main'
})