mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-02 02:51:06 +02:00
.github: Allow specifying a start number for generated patches
When an action generates a couple of patches separately, then it might be a good idea to specify a numbering, so applying the patches is done in the desired order. Without that, all the generated patches would start with "0001-" prefix.
This commit is contained in:
parent
caf091343a
commit
5daf5eb1ca
@ -129,7 +129,7 @@ function generate_patches() {
|
||||
git commit -a -m "${CATEGORY_NAME}: Upgrade ${PKGNAME_DESC} ${VERSION_OLD} to ${VERSION_NEW}"
|
||||
|
||||
# Create a patch for the main ebuilds.
|
||||
git format-patch -1 HEAD
|
||||
git format-patch --start-number "${START_NUMBER:-1}" -1 HEAD
|
||||
popd || exit
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user