Delete .github/workflows directory

This commit is contained in:
patrlim 2024-06-10 19:55:09 +02:00 committed by GitHub
parent 0ad79d13c1
commit 2021e25c98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}')