components-template/automation_tools/update_from_upstream.sh

7 lines
275 B
Bash
Executable file

#!/bin/bash
UPSTREAM_REPO='com.something.else'
TARGET_BRANCH='master'
git fetch https://github.com/flathub/"$UPSTREAM_REPO" "$TARGET_BRANCH" # Fetch the latest changes from the remote master branch
git merge FETCH_HEAD # Merge the fetched changes into your current branch