ci: only beta version will be automatically updated for now
This commit is contained in:
4
.github/new-version.sh
vendored
4
.github/new-version.sh
vendored
@@ -7,8 +7,8 @@ echo "Upstream data: $upstream_data" >&2
|
||||
upstream=$(echo "$upstream_data" | tr -d '\000-\037\177' | jq -r '.tag_name')
|
||||
echo "Upstream version is: $upstream" >&2
|
||||
|
||||
local=$(grep -oP 'version = "\K[^"]+' flake.nix)
|
||||
echo "Current version (local) is: $local" >&2
|
||||
local=$(grep -oP 'beta_version = "\K[^"]+' flake.nix)
|
||||
echo "Current version (local) is: $local" >&2 # first!
|
||||
|
||||
if [ "$upstream" != "$local" ]; then
|
||||
echo "new_version=true" >>"$GITHUB_OUTPUT"
|
||||
|
||||
4
.github/update-zen-browser.bash
vendored
4
.github/update-zen-browser.bash
vendored
@@ -33,11 +33,11 @@ echo "Updating to $upstream"
|
||||
base_url="https://github.com/zen-browser/desktop/releases/download/$upstream"
|
||||
|
||||
# Modify with sed the nix file
|
||||
sed -i "s/version = \".*\"/version = \"$upstream\"/" ./flake.nix
|
||||
sed -i "s/beta_version = \".*\"/beta_version = \"$upstream\"/" ./flake.nix
|
||||
|
||||
# Update the hash sha256
|
||||
hash=$(nix-prefetch-url --type sha256 --unpack "$base_url/zen.linux-x86_64.tar.bz2")
|
||||
sed -i "s/downloadUrl.sha256 = \".*\"/downloadUrl.sha256 = \"$hash\"/" ./flake.nix
|
||||
|
||||
nix flake update
|
||||
nix build
|
||||
nix build .#beta
|
||||
|
||||
Reference in New Issue
Block a user