Title: Action does not find a specified file in version_files · Issue #83 · commitizen-tools/commitizen-action · GitHub
Open Graph Title: Action does not find a specified file in version_files · Issue #83 · commitizen-tools/commitizen-action
X Title: Action does not find a specified file in version_files · Issue #83 · commitizen-tools/commitizen-action
Description: Scenario A repository holding a python project, with the following structure: repo-root/ ├── .cz.toml ├── .gitignore ├── src │ ├── pypackage │ │ ├── __init__.py │ │ └── ... │ ├── pyproject.toml │ └── requirements.txt └── test └── ... The...
Open Graph Description: Scenario A repository holding a python project, with the following structure: repo-root/ ├── .cz.toml ├── .gitignore ├── src │ ├── pypackage │ │ ├── __init__.py │ │ └── ... │ ├── pyproject.toml │ └...
X Description: Scenario A repository holding a python project, with the following structure: repo-root/ ├── .cz.toml ├── .gitignore ├── src │ ├── pypackage │ │ ├── __init__.py │ │ └── ... │ ├── pyproject.toml │ └...
Opengraph URL: https://github.com/commitizen-tools/commitizen-action/issues/83
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Action does not find a specified file in version_files","articleBody":"## Scenario\r\n\r\n- A repository holding a python project, with the following structure:\r\n\r\n```\r\nrepo-root/\r\n├── .cz.toml\r\n├── .gitignore\r\n├── src\r\n│ ├── pypackage\r\n│ │ ├── __init__.py\r\n│ │ └── ...\r\n│ ├── pyproject.toml\r\n│ └── requirements.txt\r\n└── test\r\n └── ...\r\n```\r\n- The contents of `.cz.toml` being:\r\n```\r\n[tool.commitizen]\r\nversion = \"0.0.5\"\r\ntag_format = \"v$major.$minor.$patch\"\r\nversion_scheme = \"semver\"\r\nversion_provider = \"pep621\"\r\nmajor_version_zero = true\r\nupdate_changelog_on_bump = false\r\nversion_files = [\r\n \"src/pyproject.toml:version\",\r\n]\r\n```\r\n\r\n- The invocation of this action\r\n```\r\n- id: cz\r\n name: Commitizen | Bump\r\n uses: commitizen-tools/commitizen-action@master\r\n with:\r\n push: false\r\n commit: false\r\n increment: PATCH\r\n github_token: ${{ secrets.MYTOKEN }}\r\n changelog: false\r\n```\r\n\r\n## Expected outcome\r\n\r\nRunning the `cz` job step should succeed, bumping the version on `.cz.toml` and `src/pyproject.toml`.\r\n\r\n## Actual outcome (failure)\r\n\r\nThe log of execution is:\r\n```\r\nRun commitizen-tools/commitizen-action@master\r\n/usr/local/bin/docker run --name ae4c464ff0919c3743e7818646fbeb9524d7_a3ecf2 --label 43ae4c --workdir /github/workspace --rm -e \"INPUT_PUSH\" -e \"INPUT_COMMIT\" -e \"INPUT_INCREMENT\" -e \"INPUT_GITHUB_TOKEN\" -e \"INPUT_CHANGELOG\" -e \"INPUT_DEBUG\" -e \"INPUT_DRY_RUN\" -e \"INPUT_MERGE\" -e \"INPUT_PRERELEASE\" -e \"INPUT_DEVRELEASE\" -e \"INPUT_LOCAL_VERSION\" -e \"INPUT_REPOSITORY\" -e \"INPUT_BRANCH\" -e \"INPUT_EXTRA_REQUIREMENTS\" -e \"INPUT_CHANGELOG_INCREMENT_FILENAME\" -e \"INPUT_GIT_REDIRECT_STDERR\" -e \"INPUT_GIT_NAME\" -e \"INPUT_GIT_EMAIL\" -e \"INPUT_COMMITIZEN_VERSION\" -e \"INPUT_NO_RAISE\" -e \"INPUT_CHECK_CONSISTENCY\" -e \"INPUT_GPG_SIGN\" -e \"HOME\" -e \"GITHUB_JOB\" -e \"GITHUB_REF\" -e \"GITHUB_SHA\" -e \"GITHUB_REPOSITORY\" -e \"GITHUB_REPOSITORY_OWNER\" -e \"GITHUB_REPOSITORY_OWNER_ID\" -e \"GITHUB_RUN_ID\" -e \"GITHUB_RUN_NUMBER\" -e \"GITHUB_RETENTION_DAYS\" -e \"GITHUB_RUN_ATTEMPT\" -e \"GITHUB_REPOSITORY_ID\" -e \"GITHUB_ACTOR_ID\" -e \"GITHUB_ACTOR\" -e \"GITHUB_TRIGGERING_ACTOR\" -e \"GITHUB_WORKFLOW\" -e \"GITHUB_HEAD_REF\" -e \"GITHUB_BASE_REF\" -e \"GITHUB_EVENT_NAME\" -e \"GITHUB_SERVER_URL\" -e \"GITHUB_API_URL\" -e \"GITHUB_GRAPHQL_URL\" -e \"GITHUB_REF_NAME\" -e \"GITHUB_REF_PROTECTED\" -e \"GITHUB_REF_TYPE\" -e \"GITHUB_WORKFLOW_REF\" -e \"GITHUB_WORKFLOW_SHA\" -e \"GITHUB_WORKSPACE\" -e \"GITHUB_EVENT_PATH\" -e \"GITHUB_PATH\" -e \"GITHUB_ENV\" -e \"GITHUB_STEP_SUMMARY\" -e \"GITHUB_STATE\" -e \"GITHUB_OUTPUT\" -e \"GITHUB_ACTION\" -e \"GITHUB_ACTION_REPOSITORY\" -e \"GITHUB_ACTION_REF\" -e \"RUNNER_OS\" -e \"RUNNER_ARCH\" -e \"RUNNER_NAME\" -e \"RUNNER_ENVIRONMENT\" -e \"RUNNER_TOOL_CACHE\" -e \"RUNNER_TEMP\" -e \"RUNNER_WORKSPACE\" -e \"ACTIONS_RUNTIME_URL\" -e \"ACTIONS_RUNTIME_TOKEN\" -e \"ACTIONS_CACHE_URL\" -e \"ACTIONS_RESULTS_URL\" -e GITHUB_ACTIONS=true -e CI=true -v \"/var/run/docker.sock\":\"/var/run/docker.sock\" -v \"/runner/_work/_temp/_github_home\":\"/github/home\" -v \"/runner/_work/_temp/_github_workflow\":\"/github/workflow\" -v \"/runner/_work/_temp/_runner_file_commands\":\"/github/file_commands\" -v \"/runner/_work/myrepo/myrepo\":\"/github/workspace\" 43ae4c:464ff0919c3743e7818646fbeb9524d7\r\ngpg (GnuPG) 2.4.4\r\nlibgcrypt 1.10.3\r\nCopyright (C) 2024 g10 Code GmbH\r\nLicense GNU GPL-3.0-or-later \u003chttps://gnu.org/licenses/gpl.html\u003e\r\nThis is free software: you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law.\r\n\r\nHome: /github/home/.gnupg\r\nSupported algorithms:\r\nPubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA\r\nCipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,\r\n CAMELLIA128, CAMELLIA192, CAMELLIA256\r\nHash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224\r\nCompression: Uncompressed, ZIP, ZLIB, BZIP2\r\ngit version 2.43.4\r\nConfiguring Git username, email, and pull behavior...\r\nGit name: github-actions[bot]\r\nGit email: github-actions[bot]@users.noreply.github.com\r\npip install commitizen\r\nWARNING: The directory '/github/home/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.\r\nCollecting commitizen\r\n Downloading commitizen-3.25.0-py3-none-any.whl (70 kB)\r\n ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 70.2/70.2 kB 11.6 MB/s eta 0:00:00\r\n...\r\nSuccessfully installed MarkupSafe-2.1.5 argcomplete-3.3.0 charset-normalizer-3.3.2 colorama-0.4.6 commitizen-3.25.0 decli-0.6.2 importlib_metadata-7.1.0 jinja2-3.1.4 packaging-24.0 prompt_toolkit-3.0.36 pyyaml-6.0.1 questionary-2.0.1 termcolor-2.4.0 tomlkit-0.12.5 wcwidth-0.2.13 zipp-3.18.2\r\nWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\r\n\r\nNotice: A new release of pip is available: 23.0.1 -\u003e 24.0\r\nNotice: To update, run: pip install --upgrade pip\r\nCommitizen version: 3.25.0\r\nTraceback (most recent call last):\r\n File \"/usr/local/bin/cz\", line 8, in \u003cmodule\u003e\r\n sys.exit(main())\r\n File \"/usr/local/lib/python3.10/site-packages/commitizen/cli.py\", line 607, in main\r\n args.func(conf, arguments)()\r\n File \"/usr/local/lib/python3.10/site-packages/commitizen/commands/version.py\", line 25, in __call__\r\n version = get_provider(self.config).get_version()\r\n File \"/usr/local/lib/python3.10/site-packages/commitizen/providers/base_provider.py\", line 79, in get_version\r\n document = tomlkit.parse(self.file.read_text())\r\n File \"/usr/local/lib/python3.10/pathlib.py\", line 1134, in read_text\r\n with self.open(mode='r', encoding=encoding, errors=errors) as f:\r\n File \"/usr/local/lib/python3.10/pathlib.py\", line 1119, in open\r\n return self._accessor.open(self, mode, buffering, encoding, errors,\r\nFileNotFoundError: [Errno 2] No such file or directory: 'pyproject.toml'\r\n```","author":{"url":"https://github.com/lulingar","@type":"Person","name":"lulingar"},"datePublished":"2024-05-17T08:16:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/83/commitizen-action/issues/83"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9c3cdfa4-2d95-37f6-6b76-ba9294bee444 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B66E:2A6D22:15BEFDC:1CF2A33:69772890 |
| html-safe-nonce | 91fc25200e85b4d4d2d7879ba5cb898b2522652fe6f12d9dfd8871434d7bf1e8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjZFOjJBNkQyMjoxNUJFRkRDOjFDRjJBMzM6Njk3NzI4OTAiLCJ2aXNpdG9yX2lkIjoiMjE4MjE0ODg3NjI3NjI3OTQ0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ab4242ad21afb3cbef19160fe7243d4c8e57d665e95baa74077dfe9a9c0977eb |
| hovercard-subject-tag | issue:2302103311 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/commitizen-tools/commitizen-action/83/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6e92d720ea4bbf037118ae1dd600d4f1ab2c631ef4f6cc59b2641b5d7b19485c/commitizen-tools/commitizen-action/issues/83 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6e92d720ea4bbf037118ae1dd600d4f1ab2c631ef4f6cc59b2641b5d7b19485c/commitizen-tools/commitizen-action/issues/83 |
| og:image:alt | Scenario A repository holding a python project, with the following structure: repo-root/ ├── .cz.toml ├── .gitignore ├── src │ ├── pypackage │ │ ├── __init__.py │ │ └── ... │ ├── pyproject.toml │ └... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lulingar |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| turbo-cache-control | no-preview |
| go-import | github.com/commitizen-tools/commitizen-action git https://github.com/commitizen-tools/commitizen-action.git |
| octolytics-dimension-user_id | 62252524 |
| octolytics-dimension-user_login | commitizen-tools |
| octolytics-dimension-repository_id | 287308634 |
| octolytics-dimension-repository_nwo | commitizen-tools/commitizen-action |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 287308634 |
| octolytics-dimension-repository_network_root_nwo | commitizen-tools/commitizen-action |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f752335dbbea672610081196a1998e39aec5e14b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width