From 2021e25c9892779d2438041b93212bb383af528c Mon Sep 17 00:00:00 2001 From: patrlim <81219610+patrlim@users.noreply.github.com> Date: Mon, 10 Jun 2024 19:55:09 +0200 Subject: [PATCH] Delete .github/workflows directory --- .github/workflows/fileCheck.yml | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 .github/workflows/fileCheck.yml diff --git a/.github/workflows/fileCheck.yml b/.github/workflows/fileCheck.yml deleted file mode 100644 index 2f258ac..0000000 --- a/.github/workflows/fileCheck.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Run Script - -on: - push: - branches: - - main - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: '3.x' - - uses: jannekem/run-python-script-action@v1 - with: - script: | - import os - json = open("songs.json","w") - json.write('{\n "songs":[\n') - i = 0 - for file in os.listdir(): - i += 1 - if file[-4:] != ".mp3": - continue - json.write(" {\n" + ' "name":' + '"' + file.replace(".mp3","") + '"' + "\n") - json.write(' "url":' + '"' + 'https://github.com/patrlim/musicshite/tree/main/' +file.replace(" ","%20") + '"' + "\n }") - if i != len(os.listdir()): - json.write(",") - json.write("\n") - json.write(' ]\n}')