Added Bubble_trouble.bas for the SC-3000 #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Convert Basic | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
convert: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
cache: 'pip' | |
- run: pip install -r SC3000/script/requirements.txt | |
- run: | | |
CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} | grep '^SC3000/.*\.\(bas\|basic\)$' || true) | |
if [ -n "$CHANGED_FILES" ]; then | |
echo "Changed Files: " | |
echo "$CHANGED_FILES" | |
for FILE in $CHANGED_FILES; do | |
python SC3000/script/basicToWav.py "$FILE" | |
done | |
git config user.name "bot" | |
git config user.email "github-actions@users.noreply.github.com" | |
git add . | |
git commit -m "Add converted file" | |
git push origin master | |
else | |
echo "Nothing to do" | |
fi |