Skip to content

Commit

Permalink
Merge pull request #32 from sec2pri/remove-debug-echoes
Browse files Browse the repository at this point in the history
Update chebi.yml
  • Loading branch information
tabbassidaloii authored Dec 15, 2023
2 parents b243974 + 21ee058 commit 706e38c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/chebi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,10 @@ jobs:
wget https://ftp.ebi.ac.uk/pub/databases/chebi/archive/rel223/SDF/
##Extract the string containing pattern 'ChEBI_complete_3star.sdf.gz'
string=$(cat index.html | grep ">ChEBI_complete_3star.sdf.gz<")
echo $string
##Extract the date from the latest release (up to the day)
date_new=$(echo "$string" | grep -oP '<td align="right">\K[0-9-]+\s[0-9:]+(?=\s+</td>)' | awk '{print $1}')
echo $date_new
##Extract the date from the ChEBI README file (up to the day)
date_old=$(cat datasources/chebi/README.md | grep -oP 'released on \K[0-9-]+' | awk '{print $1}')
echo $date_old
##Print the dates
echo "Date of latest release: $date_new", "Date of release of the current version: $date_old"
##Compare the dates and set GITHUB_ENV variable if date_new is more recent
Expand All @@ -44,7 +41,7 @@ jobs:
rm index.htm*
##Download?
echo download is ${{ github.DOWNLOAD_FILE }}
echo download flag value (skips if empty): ${{ github.DOWNLOAD_FILE }}
download_file:
needs: check_release
Expand Down

0 comments on commit 706e38c

Please sign in to comment.