Skip to content

Commit f2f2ad5

Browse files
authored
Update update_available_software.yml
1 parent ba57b54 commit f2f2ad5

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/update_available_software.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ jobs:
3232
3333
# download https://eessi.io/api_data/data/eessi_api_metadata_software.json
3434
# to where it's expected by docs/available_software/macros.py and scripts/available_software/available_software.py
35-
mkdir -p docs/available_software/data
36-
cd docs/available_software/data
35+
data_dir="docs/available_software/data"
36+
mkdir -p ${data_dir}
37+
cd ${data_dir}
3738
curl -OL https://eessi.io/api_data/data/eessi_api_metadata_software.json
3839
cd -
3940
@@ -54,7 +55,7 @@ jobs:
5455
fi
5556
5657
# remove the data directory containing the original JSON file, or it'll end up in the PR being opened
57-
rm -f docs/available_software/data
58+
rm -f ${data_dir}
5859
5960
- name: create pull request
6061
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8

0 commit comments

Comments
 (0)