mirror of
https://github.com/outbackdingo/hyprcosmic.git
synced 2026-08-25 14:53:21 +00:00
Add script to automate update of version, currently limited to apps
This commit is contained in:
Executable
+40
@@ -0,0 +1,40 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# This should be the _next_ epoch version
|
||||||
|
version=1.0.4
|
||||||
|
subject="Epoch ${version} version update"
|
||||||
|
description="Generated by cosmic-epoch scripts/version-update.sh"
|
||||||
|
|
||||||
|
repos=(
|
||||||
|
cosmic-edit
|
||||||
|
cosmic-files
|
||||||
|
cosmic-player
|
||||||
|
cosmic-store
|
||||||
|
cosmic-term
|
||||||
|
)
|
||||||
|
|
||||||
|
for repo in "${repos[@]}"
|
||||||
|
do
|
||||||
|
git submodule update --recursive "${repo}"
|
||||||
|
pushd "${repo}"
|
||||||
|
git fetch origin
|
||||||
|
git checkout -B epoch-update origin/master
|
||||||
|
git reset --hard
|
||||||
|
if [ "$(dpkg-parsechangelog --show-field Version)" != "${version}" ]
|
||||||
|
then
|
||||||
|
dch --newversion "${version}" --distribution noble "${subject}"
|
||||||
|
fi
|
||||||
|
cargo set-version "${version}"
|
||||||
|
cargo update
|
||||||
|
git commit -a -m "${subject}" -m "${description}"
|
||||||
|
git push -f -u origin epoch-update
|
||||||
|
gh pr create \
|
||||||
|
--title "${subject}" \
|
||||||
|
--body "${description}" \
|
||||||
|
--assignee "@me" \
|
||||||
|
--reviewer "pop-os/engineering" \
|
||||||
|
--reviewer "pop-os/quality-assurance"
|
||||||
|
popd
|
||||||
|
done
|
||||||
Reference in New Issue
Block a user