Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

20_commit_code.sh - Commit the deposit or other files

Description

Commits a path to the repository.

  1. Adds and commits the given path (paths under generated/ are added with -f, as generated/ may be ignored). The commit is logged to generated/git-commit.log.

  2. Without a second argument, the commit message is “Adding code from ” and the commit gets an annotated tag update<N>, where N is one more than the highest existing update tag.

Usage

./automations/20_commit_code.sh <path> [run|notag]

Environment Variables