The command failed with an unexpected error. Here is the traceback:
422 {"message": "path cannot start with a slash", "errors": [{"resource": "Commit", "field": "path", "code": "invalid"}], "documentation_url": "https://docs.github.com/rest/reference/repos#create-or-update-file-contents"}
Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/appservice/custom.py", line 4717, in add_github_actions
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\github/Repository.py", line 1789, in get_contents
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\github/Requester.py", line 353, in requestJsonAndCheck
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\github/Requester.py", line 378, in __check
github.GithubException.UnknownObjectException: 404 {"message": "Not Found", "documentation_url": "https://docs.github.com/rest/reference/repos#get-repository-content"}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 658, in execute
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 721, in _run_jobs_serially
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 692, in _run_job
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 328, in __call__
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/appservice/custom.py", line 4744, in add_github_actions
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\github/Repository.py", line 2090, in create_file
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\github/Requester.py", line 353, in requestJsonAndCheck
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\github/Requester.py", line 378, in __check
github.GithubException.GithubException: 422 {"message": "path cannot start with a slash", "errors": [{"resource": "Commit", "field": "path", "code": "invalid"}], "documentation_url": "https://docs.github.com/rest/reference/repos#create-or-update-file-contents"}
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
Windows-10-10.0.22000-SP0
Python 3.8.9
Installer: MSI
azure-cli 2.31.0
This is autogenerated. Please review and update as needed.
Describe the bug
It seems to creating file start with slash
/.github/workflows/main_toshida-gha-webapp2.ymlCommand Name
az webapp deployment github-actions addErrors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az webapp deployment github-actions add --repo {} -g {} -n {} --token {} -b {} --verboseExpected Behavior
Environment Summary
Additional Context