Skip to content

Commit

Permalink
Adding start of media generation pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmcf committed Nov 7, 2023
1 parent 091759c commit 72f9adc
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/generate-medias.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#
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:
my-job-name:
runs-on: ubuntu-latest
container:
image: docker pull ghcr.io/soprodecarnaval/musicoteca:main
options: --user root
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Generate media generator file
run: |
find collection/ -type f -name "*.mscz" | jq -R -s -c 'split("\n") | map({"in":., "out": [[ . | sub(".mscz";"_"),".svg"],"\(. | sub(".mscz";".metajson"))"]})' | jq 'map(select(.in != ""))' > media-generation.json

0 comments on commit 72f9adc

Please sign in to comment.