Skip to content

Commit 671c184

Browse files
ci: fix release workflow YAML syntax errors
Signed-off-by: kmilo <kmilo.denis.glez@yandex.com>
1 parent a9eb5e0 commit 671c184

1 file changed

Lines changed: 5 additions & 25 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -16,38 +16,18 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818
submodules: recursive
19-
- name: Debug: runner and repository state
19+
- name: Debug workflow context
2020
run: |
2121
echo "--- GitHub context ---"
2222
echo "GITHUB_REF=$GITHUB_REF"
2323
echo "GITHUB_SHA=$GITHUB_SHA"
2424
echo "GITHUB_EVENT_NAME=$GITHUB_EVENT_NAME"
2525
echo "GITHUB_RUN_ID=$GITHUB_RUN_ID"
26-
echo "GITHUB_WORKFLOW=$GITHUB_WORKFLOW"
2726
echo "--- Git info ---"
28-
git --no-pager log -1 --pretty=fuller || true
29-
echo "Current branch:"; git rev-parse --abbrev-ref HEAD || true
30-
echo "Tags pointing at HEAD:"; git tag --points-at HEAD || true
31-
echo "Describe:"; git describe --tags --exact-match 2>/dev/null || true
32-
echo "Git status:"; git status --porcelain || true
27+
git log -1 --pretty=oneline || true
28+
git describe --tags --exact-match 2>/dev/null || echo "not at a tag"
3329
echo "--- Files ---"
34-
ls -la || true
35-
ls -la src || true
36-
ls -la fabric_protos_python || true
37-
echo "--- Project files ---"
38-
test -f pyproject.toml && sed -n '1,200p' pyproject.toml || echo 'no pyproject'
39-
test -f setup.py && sed -n '1,200p' setup.py || echo 'no setup.py'
40-
echo "--- Python environment ---"
41-
which python || true
42-
python -V || true
43-
which pip || true
44-
pip -V || true
45-
pip list --format=columns || true
46-
echo "--- SYS.PATH ---"
47-
python - <<'PY'
48-
import sys
49-
print('\n'.join(sys.path))
50-
PY
30+
ls -la
5131
- name: Set up Python
5232
uses: actions/setup-python@v4
5333
with:
@@ -74,4 +54,4 @@ PY
7454
if: ${{ secrets.PYPI_API_TOKEN != '' }}
7555
run: |
7656
python -m pip install --upgrade twine
77-
python -m twine upload dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}
57+
python -m twine upload dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)