ci: partial integration with new script to fetch new versions

This commit is contained in:
Luis Quiñones
2024-12-31 15:09:28 -05:00
parent 49b0ac38c4
commit 07a074f2f7
5 changed files with 43 additions and 71 deletions

View File

@@ -13,28 +13,28 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Check new version
id: new-version
- name: Check if update is needed
id: check
run: |
.github/new-version.sh
.github/check-update.sh
- name: Install Nix
if: steps.new-version.outputs.new_version == 'true'
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.new-version.outputs.new_version == 'true'
if: steps.check.outputs.should_update == 'true'
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Update hashes and test build
if: steps.new-version.outputs.new_version == 'true'
- name: Update versions
if: steps.check.outputs.should_update == 'true'
run: |
.github/update-zen-browser.bash
.github/update.sh
- name: Commit changes
if: steps.new-version.outputs.new_version == 'true'
if: steps.check.outputs.should_update == 'true'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update Zen Browser to v${{ steps.new-version.outputs.upstream }}"