-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace some subprocess.run() calls with subprocess.check_output()
wpiformat calls "git diff --name-only master" in a subprocess to get a list of files which have been modified from master. In GitHub Actions, there is no master branch by default. When wpiformat is run in GitHub Actions, this causes the git subprocess to fail. subprocess.run() doesn't check the return code, so wpiformat was reporting success when the program had actually failed with an error. subprocess.check_output() does check the return code by default. A return code check was also added to "git check-ignore".
- Loading branch information
Showing
3 changed files
with
16 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters