Skip to content

Commit

Permalink
Different env variable usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jmillanacosta authored Jan 26, 2024
1 parent b96e90e commit a80dd25
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/chebi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ jobs:
- name: Diff versions
run: |
old=$env.ZENODO_FILE_NAME
new=mapping_preprocessing/datasources/chebi/data/$env.ZENODO_FILE_NAME
old=$ZENODO_FILE_NAME
new=mapping_preprocessing/datasources/chebi/data/$ZENODO_FILE_NAME
column_name="secondaryID"
# Extract the secondaryID column from both files and sort them
ids_old=$(cut -f 2 "$old" | sort | tr -d "\r")
Expand Down Expand Up @@ -167,14 +167,14 @@ jobs:
- uses: actions/checkout@v3
- run: |
echo "---" >> issue.md
echo "title: Update ChEBI - release on ${{ env.DATE_NEW }}" >> issue.md
echo "title: Update ChEBI - release on ${{ DATE_NEW }}" >> issue.md
echo "assignees: tabbassidaloii" >> issue.md
echo "---" >> issue.md
echo "[New release for ChEBI](https://ftp.ebi.ac.uk/pub/databases/chebi/archive/rel${{ env.RELEASE }}/SDF/) available from ${{ env.DATE_NEW }}." >> issue.md
echo "[New release for ChEBI](https://ftp.ebi.ac.uk/pub/databases/chebi/archive/rel${{ RELEASE }}/SDF/) available from ${{ DATE_NEW }}." >> issue.md
echo ## Removed secondary IDs
echo $env.REMOVED
echo $REMOVED
echo ## Added secondary IDs
echo $env.ADDED
echo $ADDED
- uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -193,10 +193,10 @@ jobs:
- uses: actions/checkout@v3
- run: |
echo "---" >> issue.md
echo "title: Failed ChEBI processing for release ${{ env.RELEASE }}" >> issue.md
echo "title: Failed ChEBI processing for release ${{ RELEASE }}" >> issue.md
echo "assignees: tabbassidaloii" >> issue.md
echo "---" >> issue.md
echo "Processing failed for the [new release for ChEBI](https://ftp.ebi.ac.uk/pub/databases/chebi/archive/rel${{ env.RELEASE }}/SDF/) available from ${{ env.DATE_NEW }}." >> issue.md
echo "Processing failed for the [new release for ChEBI](https://ftp.ebi.ac.uk/pub/databases/chebi/archive/rel${{ RELEASE }}/SDF/) available from ${{ DATE_NEW }}." >> issue.md
- uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit a80dd25

Please sign in to comment.