Skip to content

Commit ef03cb2

Browse files
committed
Fix release workflow repository handling
1 parent d96c9e3 commit ef03cb2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
if [[ "$GITHUB_REPOSITORY" == "MirrorNeuronLab/mn-system-tests" ]]; then
103103
python -m pip install pytest pytest-cov requests
104104
python -m pip install "mirrorneuron-python-sdk @ git+https://github.com/MirrorNeuronLab/mn-python-sdk.git"
105-
python -m pip install "mn-cli @ git+https://github.com/MirrorNeuronLab/mn-cli.git"
105+
python -m pip install "mirrorneuron-cli @ git+https://github.com/MirrorNeuronLab/mn-cli.git"
106106
elif [[ -f requirements.txt && "${{ steps.detect.outputs.has_python_package }}" != "true" ]]; then
107107
python -m pip install -r requirements.txt
108108
fi

‎.github/workflows/release.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
if [[ "$GITHUB_REPOSITORY" == "MirrorNeuronLab/mn-system-tests" ]]; then
129129
python -m pip install pytest pytest-cov requests
130130
python -m pip install "mirrorneuron-python-sdk @ git+https://github.com/MirrorNeuronLab/mn-python-sdk.git"
131-
python -m pip install "mn-cli @ git+https://github.com/MirrorNeuronLab/mn-cli.git"
131+
python -m pip install "mirrorneuron-cli @ git+https://github.com/MirrorNeuronLab/mn-cli.git"
132132
elif [[ -f requirements.txt && "${{ steps.detect.outputs.has_python_package }}" != "true" ]]; then
133133
python -m pip install -r requirements.txt
134134
fi
@@ -345,7 +345,7 @@ jobs:
345345
run: |
346346
set -euo pipefail
347347

348-
if gh release view "$TAG_NAME" >/dev/null 2>&1; then
348+
if gh release view "$TAG_NAME" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
349349
echo "Release $TAG_NAME already exists; refusing to overwrite it." >&2
350350
exit 1
351351
fi
@@ -356,7 +356,7 @@ jobs:
356356
exit 1
357357
fi
358358

359-
release_args=(release create "$TAG_NAME")
359+
release_args=(release create "$TAG_NAME" --repo "$GITHUB_REPOSITORY")
360360
release_args+=("${assets[@]}")
361361
release_args+=(--title "$TAG_NAME" --verify-tag --generate-notes)
362362

0 commit comments

Comments
 (0)