diff --git a/.github/workflows/transfer_files.yml b/.github/workflows/transfer_files.yml index 447f25e..2f18fca 100644 --- a/.github/workflows/transfer_files.yml +++ b/.github/workflows/transfer_files.yml @@ -8,20 +8,20 @@ on: jobs: + list-databases: + runs-on: ubuntu-latest + outputs: + matrix: ${{ steps.set-matrix.outputs.matrix }} + steps: + - uses: actions/checkout@v2 + - id: set-matrix + run: echo "::set-output name=matrix::$(ls databases/*.json | jq -R -s -c 'split("\n")[:-1]')" transfer-all-files: strategy: fail-fast: false matrix: - FILENAME: - - databases/blast.json - - databases/gtdb-tk.json - - databases/card.json - - databases/checkm.json - - databases/plsdb.json - - databases/alphafold.json - - databases/uniprot.json - + FILENAME: ${{ fromJson(needs.list-manifests.outputs.matrix) }} # Add more files as needed uses: ./.github/workflows/transfer_file.yml