Skip to content

Merge pull request #399 from CPJKU/performance_pedal_fix #96

Merge pull request #399 from CPJKU/performance_pedal_fix

Merge pull request #399 from CPJKU/performance_pedal_fix #96

Workflow file for this run

name: Blacken code
on:
push:
branches:
- develop
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Format code with black
run: |
pip install black
black ./partitura
- name: Commit changes
uses: EndBug/add-and-commit@v4
with:
author_name: ${{ github.actor }}
author_email: ${{ github.actor }}@users.noreply.github.com
message: "Format code with black (bot)"
add: "."
- name: Notify errors
if: failure()
uses: dawidd6/action-send-mail@v2
with:
server_address: smtp.gmail.com
server_port: 465
username: ${{ secrets.EMAIL_USERNAME }}
password: ${{ secrets.EMAIL_PASSWORD }}
subject: "Format code with black"
body: "Format code with black failed"
to: ${{ secrets.EMAIL_TO }}
from: ${{ secrets.EMAIL_FROM }}
content_type: text/plain