Skip to content

Commit

Permalink
Use ref_name if head_ref is not present (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
domna authored Jun 12, 2024
1 parent 57d6934 commit 89bc16c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/nomad-requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
run: |
git clone --depth 1 --branch develop --recurse-submodules https://gitlab.mpcdf.mpg.de/nomad-lab/nomad-FAIR.git nomad
git submodule update --init --recursive --depth 1
- name: Replace pynxtools dependency in NOMAD pyproject.toml
working-directory: ./nomad
run: |
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
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
- name: Set up Python
uses: actions/setup-python@v2
Expand All @@ -37,7 +37,7 @@ jobs:

- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Generate (dev-)requirements.txt from modified pyproject.toml
working-directory: ./nomad
Expand Down

0 comments on commit 89bc16c

Please sign in to comment.