Skip to content

Generate medias from Musescore files #15

Generate medias from Musescore files

Generate medias from Musescore files #15

#
name: Generate medias from Musescore files
# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
workflow_dispatch:
jobs:
generate-medias:
runs-on: ubuntu-latest
container:
image: ghcr.io/soprodecarnaval/musicoteca:main
options: --user root --workdir /app
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Generate media generator file
shell: bash
run: |
find public/collection/ -type f -name "*.mscz" | jq -R -s 'split("\n") | map(select(.!="") | sub(".mscz";"") | {"in":"\(.).mscz", "out": [[ "\(.)_",".svg"],[ "\(.)_",".midi"],"\(.).midi","\(.).metajson"]})' > media-generation.json
head media-generation.json
#xvfb-run /squashfs-root/AppRun -j media-generation.json
- name: Commit and push changes
uses: devops-infra/action-commit-push@master
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
add_timestamp: true
commit_prefix: "[AUTO]"
commit_message: "Commiting media files"
force: false