Skip to content

Commit 89bc16c

Browse files
authored
Use ref_name if head_ref is not present (#348)
1 parent 57d6934 commit 89bc16c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/nomad-requirements.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
run: |
2525
git clone --depth 1 --branch develop --recurse-submodules https://gitlab.mpcdf.mpg.de/nomad-lab/nomad-FAIR.git nomad
2626
git submodule update --init --recursive --depth 1
27-
27+
2828
- name: Replace pynxtools dependency in NOMAD pyproject.toml
2929
working-directory: ./nomad
3030
run: |
31-
sed -i 's|pynxtools\[convert\]==[0-9]\+\(\.[0-9]\+\)\{0,2\}|pynxtools\[convert\]@git+https://github.com/FAIRmat-NFDI/pynxtools.git@${{ github.head_ref }}|' pyproject.toml
31+
sed -i 's|pynxtools\[convert\]==[0-9]\+\(\.[0-9]\+\)\{0,2\}|pynxtools\[convert\]@git+https://github.com/FAIRmat-NFDI/pynxtools.git@${{ github.head_ref || github.ref_name }} |' pyproject.toml
3232
3333
- name: Set up Python
3434
uses: actions/setup-python@v2
@@ -37,7 +37,7 @@ jobs:
3737

3838
- name: Install uv
3939
run: |
40-
curl -LsSf https://astral.sh/uv/install.sh | sh
40+
curl -LsSf https://astral.sh/uv/install.sh | sh
4141
4242
- name: Generate (dev-)requirements.txt from modified pyproject.toml
4343
working-directory: ./nomad

0 commit comments

Comments
 (0)