Skip to content

Commit f5b300b

Browse files
committed
Print info for release name conflict in publish workflow
1 parent 9a8cd7d commit f5b300b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/pypi.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,23 @@ jobs:
2929
- name: Set env
3030
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
3131

32+
- name: Print RELEASE_VERSION
33+
run: echo "${{ env.RELEASE_VERSION }}"
34+
35+
- name: Show version lines
36+
run: |
37+
grep 'version =' pyproject.toml
38+
grep '__version__' servicex_analysis_utils/__init__.py
3239
3340
- name: Update Version
3441
run: |
3542
sed -i '/version =/ s/= "[^"][^"]*"/ = "${{ env.RELEASE_VERSION }}"/' pyproject.toml
3643
sed -i '/__version__ =/ s/= "[^"][^"]*"/ = "${{ env.RELEASE_VERSION }}"/' servicex_analysis_utils/__init__.py
3744
45+
- name: Show updated version lines
46+
run: |
47+
grep 'version =' pyproject.toml
48+
grep '__version__' servicex_analysis_utils/__init__.py
3849
3950
- name: Build a sdist and wheel
4051
run: |
@@ -111,7 +122,7 @@ jobs:
111122
run: |
112123
git config --local user.name "github-actions[bot]"
113124
git config --local user.email "github-actions[bot]@users.noreply.github.com"
114-
git add pyproject.toml servicex_analysis_utils/__init__.py
125+
git add ./pyproject.toml servicex_analysis_utils/__init__.py
115126
116127
# Check if there are changes to commit
117128
if ! git diff --cached --quiet; then

0 commit comments

Comments
 (0)