Skip to content

Commit 0638add

Browse files
committed
Comment out check_version step in release.yaml to disable version checks during build
1 parent 966722a commit 0638add

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

.github/workflows/release.yaml

+26-26
Original file line numberDiff line numberDiff line change
@@ -13,37 +13,37 @@ jobs:
1313
uses: ./.github/workflows/ci.yaml
1414
secrets: inherit
1515

16-
check_version:
17-
runs-on: ubuntu-latest
18-
steps:
19-
- uses: actions/checkout@v4
20-
- name: check tag version == pyproject.version
21-
id: version
22-
run: |
23-
pip install toml-cli
24-
PROJECT_VERSION=$(toml get --toml-path pyproject.toml project.version)
25-
TAG=$(git describe HEAD --tags --abbrev=0)
26-
echo TAG: $TAG
27-
echo "PROJECT_VERSION: $PROJECT_VERSION"
28-
echo "project_version=$PROJECT_VERSION" >> $GITHUB_OUTPUT
29-
if [[ "$TAG" != "v$PROJECT_VERSION" ]]; then exit 1; fi
30-
- name: Check tag version > pypi version
31-
uses: maybe-hello-world/pyproject-check-version@v4
32-
id: versioncheck
33-
with:
34-
pyproject-path: "./pyproject.toml"
35-
test-regex: '[0-9]+(\\.[0-9]+)*([a-z]+[0-9]+)?(\\.post[0-9]+)?(\\.dev[0-9]+)?'
36-
- name: check output
37-
run: |
38-
echo "Output: ${{ steps.versioncheck.outputs.local_version_is_higher }}" # 'true' or 'false
39-
echo "Local version: ${{ steps.versioncheck.outputs.local_version }}" # e.g., 0.1.1
40-
echo "Public version: ${{ steps.versioncheck.outputs.public_version }}" # e.g., 0.1.0
16+
# check_version:
17+
# runs-on: ubuntu-latest
18+
# steps:
19+
# - uses: actions/checkout@v4
20+
# - name: check tag version == pyproject.version
21+
# id: version
22+
# run: |
23+
# pip install toml-cli
24+
# PROJECT_VERSION=$(toml get --toml-path pyproject.toml project.version)
25+
# TAG=$(git describe HEAD --tags --abbrev=0)
26+
# echo TAG: $TAG
27+
# echo "PROJECT_VERSION: $PROJECT_VERSION"
28+
# echo "project_version=$PROJECT_VERSION" >> $GITHUB_OUTPUT
29+
# if [[ "$TAG" != "v$PROJECT_VERSION" ]]; then exit 1; fi
30+
# - name: Check tag version > pypi version
31+
# uses: maybe-hello-world/pyproject-check-version@v4
32+
# id: versioncheck
33+
# with:
34+
# pyproject-path: "./pyproject.toml"
35+
# test-regex: '[0-9]+(\\.[0-9]+)*([a-z]+[0-9]+)?(\\.post[0-9]+)?(\\.dev[0-9]+)?'
36+
# - name: check output
37+
# run: |
38+
# echo "Output: ${{ steps.versioncheck.outputs.local_version_is_higher }}" # 'true' or 'false
39+
# echo "Local version: ${{ steps.versioncheck.outputs.local_version }}" # e.g., 0.1.1
40+
# echo "Public version: ${{ steps.versioncheck.outputs.public_version }}" # e.g., 0.1.0
4141

4242
build:
4343
runs-on: ubuntu-latest
4444
needs:
4545
- test
46-
- check_version
46+
# - check_version
4747
strategy:
4848
matrix:
4949
python-version:

0 commit comments

Comments
 (0)