Skip to content

Commit cf36f8f

Browse files
committed
release
1 parent 3378df3 commit cf36f8f

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ jobs:
9797
runs-on: ubuntu-latest
9898
needs: [test, integration-test]
9999
# if: always() && github.ref == 'refs/heads/main' && (needs.test.result == 'success' || needs.test.result == 'skipped') && (needs.integration-test.result == 'success' || needs.integration-test.result == 'skipped')
100+
permissions:
101+
contents: write
102+
pull-requests: write
100103
outputs:
101104
version: ${{ steps.version.outputs.version }}
102105
tag: ${{ steps.version.outputs.tag }}
@@ -172,21 +175,8 @@ jobs:
172175
replace = version = "{new_version}"
173176
EOF
174177
175-
# Debug: Check git status before bump
176-
echo "=== Git status before bump ==="
177-
git status
178-
echo "=== Git diff ==="
179-
git diff
180-
echo "=== Git diff --cached ==="
181-
git diff --cached
182-
183-
# Bump the version (use --allow-dirty for release_manager branch)
184-
if [[ "${{ github.ref_name }}" == "release_manager" ]]; then
185-
echo "Using --allow-dirty for release_manager branch"
186-
bump2version --allow-dirty $BUMP_TYPE
187-
else
188-
bump2version $BUMP_TYPE
189-
fi
178+
# Bump the version
179+
bump2version $BUMP_TYPE
190180
191181
# Get the new version
192182
NEW_VERSION=$(grep '^version = ' pyproject.toml | cut -d'"' -f2)

0 commit comments

Comments
 (0)