Skip to content

Fixing workflow

Fixing workflow #12

#
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
steps:
- name: Checkout repository
uses: actions/checkout@v2
- 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
alias
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
target_branch: main commit-changes:

Check failure on line 32 in .github/workflows/generate-medias.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/generate-medias.yaml

Invalid workflow file

You have an error in your yaml syntax on line 32