Skip to content

Commit e8fbe61

Browse files
authored
fix: pre-commit hook to stop checks on md files (#315)
* fix: pre-commit hook to stop checks on md files * fix(ci): using correct token to publish a release * fix: correct semantic release variable names
1 parent d5a32d4 commit e8fbe61

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
with:
4444
ref: ${{ github.ref }}
4545
fetch-depth: 0
46+
token: ${{ secrets.SILENTWORKS_PAT }}
4647
- name: Python Semantic Release
4748
id: release
4849
uses: python-semantic-release/[email protected]

.pre-commit-config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
exclude: '^.*\.(md|MD)$'
12
repos:
23
- repo: https://github.com/pre-commit/pre-commit-hooks
34
rev: v4.1.0

pyproject.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ python-semantic-release = "^8.1.1"
3939
furo = "^2023.9.10"
4040

4141
[tool.semantic_release]
42-
version_variable = "postgrest/__init__.py:__version__"
42+
version_variables = ["postgrest/__init__.py:__version__"]
4343
version_toml = ["pyproject.toml:tool.poetry.version"]
4444
major_on_zero = false
45-
commit_subject = "chore(release): bump version to v{version}"
45+
commit_message = "chore(release): bump version to v{version}"
4646
build_command = "curl -sSL https://install.python-poetry.org | python - && export PATH=\"/github/home/.local/bin:$PATH\" && poetry install && poetry build"
47-
upload_to_repository = true
47+
upload_to_vcs_release = true
4848
branch = "master"
4949
changelog_components = "semantic_release.changelog.changelog_headers,semantic_release.changelog.compare_url"
5050

0 commit comments

Comments
 (0)