Skip to content

Commit

Permalink
Remove redundant renaming step
Browse files Browse the repository at this point in the history
  • Loading branch information
pverscha committed Aug 5, 2024
1 parent a156994 commit 94d0d97
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Database
on:
push:
branches:
- "feature/generate-tsv-action"
- "master"
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
Expand Down Expand Up @@ -37,9 +37,6 @@ jobs:
- name: Generate tsv.gz files
shell: bash
run: sudo ./scripts/build_database.sh -i "index" -d "unipept-temp" -m "256M" "${{ matrix.type }}" "swissprot" "https://ftp.expasy.org/databases/uniprot/current_release/knowledgebase/complete/uniprot_sprot.xml.gz" "output"
- name: Rename the tsv.gz files according to the database type used
shell: bash
run: cd output && for file in *.tsv.gz; do mv "$file" "${file%.tsv.gz}.${{ matrix.type }}.tsv.gz"; done
- name: Zip all tsv.gz files
shell: bash
run: zip -r output/${{ matrix.type }}.zip output/*.tsv.gz
Expand Down

0 comments on commit 94d0d97

Please sign in to comment.