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.

32_pull_push.sh - Push after pulling in what others pushed

Description

Pulls the remote branch and pushes the current branch, retrying up to five times (waiting 5, 10, ... seconds in between) if the push is rejected because someone pushed in the meantime. It does not push tags.

This is needed because the m-parse-manuscript pipeline runs alongside the ingest and pushes manuscript_parsed/ to the same branch. The ingest calls it for its final push, which pulls that commit in; the two sets of files do not overlap.

Usage

./automations/32_pull_push.sh [merge|rebase]

Environment Variables