forgejo/get-sources.sh
Richard Rahl c086cbb5af - update to 10.0.1:
* Verify the ID of Forgejo Actions web endpoints belongs to the repository to
    prevent the deletion of runners or variables or the modification of
    variables
  * Enforce permissions on publicly available user or organizations projects to
    not leak information from issues and pull requests that belong to private
    repositories
  * fix(ui): display verified icon for default gpg key
  * fix: load settings for valid user and email check
  * Teach the doctor to remove orphaned two_factor with forgejo doctor check --run check-db-consistency --fix
  * fix: listing tokens must not require basic auth

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=51
2025-02-08 21:51:52 +00:00

42 lines
1.1 KiB
Bash

#!/usr/bin/sh
set -e
if [[ -z "$1" ]]; then
echo "Please enter the version you want to update to";
exit 1;
fi
VERSION="$1"
echo "++++++++++++++++++++++++++++++++++++++++++++++"
echo "patching spec file and downloading the tarball"
echo "++++++++++++++++++++++++++++++++++++++++++++++"
sed -i -e 's|Version: .*|Version: '${VERSION}'|g' forgejo.spec
osc service ra download_files
echo "++++++++++++++++++++++++++++++++++++++++++++++"
echo "extracting package-lock.json"
echo "++++++++++++++++++++++++++++++++++++++++++++++"
tar xf forgejo-src-${VERSION}.tar.gz forgejo-src-${VERSION}/package-lock.json
cp forgejo-src-${VERSION}/package-lock.json .
echo "++++++++++++++++++++++++++++++++++++++++++++++"
echo "Downloading node_modules"
echo "++++++++++++++++++++++++++++++++++++++++++++++"
osc service ra node_modules
echo "++++++++++++++++++++++++++++++++++++++++++++++"
echo "Cleanup Step"
echo "++++++++++++++++++++++++++++++++++++++++++++++"
rm -r forgejo-src-${VERSION}
rm node_modules.sums
echo "++++++++++++++++++++++++++++++++++++++++++++++"
echo "Done! Have fun building and testing"
echo "++++++++++++++++++++++++++++++++++++++++++++++"