Skip to content

Run womtool on WDL files #11

Run womtool on WDL files

Run womtool on WDL files #11

Workflow file for this run

name: Womtool
# Enable Buildkit and let compose use it to speed up image building
env:
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
on:
pull_request:
branches: [ "main" ]
paths-ignore: [ "docs/**" ]
push:
branches: [ "main" ]
paths-ignore: [ "docs/**" ]
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
detect-wdl-files:
runs-on: ubuntu-latest
name: "Detect WDL files"
outputs:
matrix: ${{ steps.detect-files.outputs.matrix }}
steps:
- name: Checkout Code Repository
uses: actions/checkout@v4
- name: Detect WDL files
id: detect-files
run: |
# Find the WDL files
wdl_files=`find . -name "*.wdl" -type f -print0 | xargs -0`
# Add double quotes and replace spaces with commas.
wdl_files=\"${wdl_files// /\",\"}\"
echo "matrix={\"wdl-file\":[$wdl_files]" >> $GITHUB_OUTPUT
- name: Show WDL files
run: echo "${{ steps.detect-files.outputs.matrix }}"
run-womtool:
needs: detect-wdl-files
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.detect-wdl-files.outputs.matrix) }}
name: "Run womtool: ${{ matrix.wdl-file }}"
steps:
- name: Checkout Code Repository
uses: actions/checkout@v4
- name: Run womtool
uses: UW-GAC/womtool-action@main
with:
wdl-file: ${{ matrix.wdl-file }}