Update Zen Browser #3035
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Zen Browser | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 * * * *" | |
jobs: | |
update-zen-browser: | |
name: Update Zen Browser | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Check if update is needed | |
id: check | |
run: | | |
.github/update.sh --ci --only-check | |
- name: Install Nix | |
if: steps.check.outputs.should_update == 'true' | |
uses: cachix/install-nix-action@v27 | |
with: | |
nix_path: nixpkgs=channel:nixpkgs-unstable | |
- name: Setup Nix Magic Cache | |
if: steps.check.outputs.should_update == 'true' | |
uses: DeterminateSystems/flakehub-cache-action@main | |
- name: Update versions | |
id: update | |
if: steps.check.outputs.should_update == 'true' | |
env: | |
GH_TOKEN: ${{ github.token }} | |
run: | | |
.github/update.sh --ci | |
- name: Commit changes | |
if: steps.check.outputs.should_update == 'true' | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "${{ steps.update.outputs.commit_message }}" | |
file_pattern: "*" |