Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

add update script with github actions#50

Open
omarcresp wants to merge 3 commits intoMarceColl:masterfrom
omarcresp:feature/update-script
Open

add update script with github actions#50
omarcresp wants to merge 3 commits intoMarceColl:masterfrom
omarcresp:feature/update-script

Conversation

@omarcresp
Copy link

This pull request introduces a new GitHub Action workflow for automating updates to the Zen Browser, along with related changes to support this automation. The primary changes include the addition of the workflow file, modifications to the flake.nix file, and a new script for updating the Zen Browser version and hashes.

Automation and workflow:

  • .github/workflows/zen-update.yml: Added a new GitHub Action workflow to automate the update process for Zen Browser. This workflow includes steps for checking out the repository, installing Nix, setting up a Nix cache, running the update script, and committing changes.

Supporting changes:

  • update-zen-browser.sh: Added a new script to check for the latest Zen Browser release, update the version in flake.nix, and update the corresponding SHA256 hashes.
  • flake.nix: Modified the format for specifying the download URLs and SHA256 hashes to simplify updates by the new script.
  • version: Added a file to store the current version of Zen Browser being used, which is referenced by the update script.

@omarcresp omarcresp force-pushed the feature/update-script branch from e2e2000 to bec0443 Compare October 6, 2024 07:20
@omarcresp omarcresp mentioned this pull request Oct 6, 2024
Copy link
Contributor

@ch4og ch4og left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, the only thing I don't really like is creation of version file, version can be read from flake.nix without creating a version file

smth like grep -oP 'version\s*=\s*"\K[^"]+' flake.nix

@omarcresp
Copy link
Author

LGTM, the only thing I don't really like is creation of version file, version can be read from flake.nix without creating a version file

smth like grep -oP 'version\s*=\s*"\K[^"]+' flake.nix

updated, removed the version file and replaced with the regex

Copy link

@chakibchemso chakibchemso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great contribution!

@luisnquin
Copy link

This is an important contribution and it seems the current owner is no longer interested in maintaining it so I just created a fork of this project for those who really want more activity.

You can find it at https://github.com/0xc000022070/zen-browser-flake.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants