name: zen browser update on: schedule: - cron: "20 3 * * *" # UTC workflow_dispatch: jobs: update-zen-browser: runs-on: ubuntu-latest concurrency: group: zen-browser-update cancel-in-progress: false steps: - name: checkout uses: actions/checkout@v4 with: fetch-depth: 0 - name: install nix uses: cachix/install-nix-action@v27 with: nix_path: nixpkgs=channel:nixos-unstable - name: check latest zen browser release and update file id: update env: FILE: modules/pkgs/zen-browser.nix LATEST_RELEASE_URL: https://github.com/zen-browser/desktop/releases/latest DOWNLOAD_URL_TEMPLATE: https://github.com/zen-browser/desktop/releases/download/{version}/zen-x86_64.AppImage RELEASE_TAG_TEMPLATE: '{version}' shell: bash run: bash .gitea/scripts/update-appimage-nix.sh - name: commit and push to main if: steps.update.outputs.updated == 'true' shell: bash run: | set -euo pipefail version="${{ steps.update.outputs.version }}" FILE="modules/pkgs/zen-browser.nix" \ COMMIT_MESSAGE="update zen browser to ${version}" \ bash .gitea/scripts/commit-update-main.sh