Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 Creating a single GitHub workflow file fails if directory .github/workflows exists already #298

Open
ckunki opened this issue Nov 28, 2024 · 1 comment · May be fixed by #312
Open
Assignees
Labels
bug Unwanted / harmful behavior

Comments

@ckunki
Copy link
Contributor

ckunki commented Nov 28, 2024

Use case

Directory .github/workflows exists
File .github/workflows/pr-merge.yml did not exist

Command

poetry run tbx workflow install pr-merge

Current behavior

Error message

FileExistsError: [Errno 17] File exists: '.github/workflows'

Expected behavior

PTB creates the file as the file does not overwrite an existing file.

@ckunki ckunki added the bug Unwanted / harmful behavior label Nov 28, 2024
@ckunki ckunki changed the title 🐞 creating a single GitHub workflow file fails if directory .github/workflows exists already 🐞 Creating a single GitHub workflow file fails if directory .github/workflows exists already Nov 28, 2024
@ckunki
Copy link
Contributor Author

ckunki commented Nov 28, 2024

@Jannis-Mittenzwei Jannis-Mittenzwei self-assigned this Dec 10, 2024
@Jannis-Mittenzwei Jannis-Mittenzwei linked a pull request Dec 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unwanted / harmful behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants