fix git commit arguments
This commit is contained in:
parent
611d5f82b5
commit
875e112a8f
3 changed files with 3 additions and 11 deletions
|
|
@ -26,7 +26,7 @@ nix run '(import ./release.nix {})' -c nur index nur-combined > nur-search/data/
|
|||
cd nur-search
|
||||
if [[ ! -z "$(git diff --exit-code)" ]]; then
|
||||
git add ./data/packages.json
|
||||
git commit "Nur a bot <joerg.nur-bot@thalheim.io>" -m "automatic update package.json"
|
||||
git commit -m "automatic update package.json"
|
||||
git pull --rebase origin master
|
||||
git push origin master
|
||||
nix-shell --run "make clean && make && make publish"
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ if [[ -z "$(git diff --exit-code)" ]]; then
|
|||
echo "No changes to the output on this push; exiting."
|
||||
else
|
||||
git add --all repos.json*
|
||||
git commit "Nur a bot <joerg.nur-bot@thalheim.io>" -m "automatic update"
|
||||
git commit -m "automatic update"
|
||||
# in case we are getting overtaken by a different job
|
||||
git pull --rebase origin master
|
||||
git push "https://$API_TOKEN_GITHUB@github.com/nix-community/NUR" HEAD:master
|
||||
|
|
|
|||
|
|
@ -42,15 +42,7 @@ def commit_files(files: List[str], message: str) -> None:
|
|||
cmd.extend(files)
|
||||
subprocess.check_call(cmd)
|
||||
if repo_changed():
|
||||
subprocess.check_call(
|
||||
[
|
||||
"git",
|
||||
"commit",
|
||||
"Nur a bot <joerg.nur-bot@thalheim.io>",
|
||||
"-m",
|
||||
message,
|
||||
]
|
||||
)
|
||||
subprocess.check_call(["git", "commit", "-m", message])
|
||||
|
||||
|
||||
def commit_repo(repo: Repo, message: str, path: Path) -> Repo:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue