.github/workflows/bump.yml #93
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
on: | |
push: | |
schedule: | |
- # ~6am AEST | |
- cron: "19 19 * * *" | |
jobs: | |
bump_versions: | |
name: Bump Browser Versions | |
runs-on: | |
ubuntu-22.04 | |
steps: | |
- name: git checkout | |
uses: actions/checkout@v4 | |
- name: Install Nix via Cachix | |
if: env.using_self_hosted_runner_with_nix != 'true' | |
uses: cachix/install-nix-action@v25 | |
with: | |
install_url: "https://releases.nixos.org/nix/nix-2.18.1/install" | |
- name: Run the Magic Nix Cache # https://determinate.systems/posts/magic-nix-cache | |
uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- name: Check Nix flake inputs | |
uses: DeterminateSystems/flake-checker-action@v5 | |
with: | |
fail-mode: false | |
- name: pull dev environment | |
run: | | |
nix develop --command \ | |
echo dev environment ready | |
- name: prep git | |
run: | | |
set -e | |
git fetch | |
git checkout main | |
git config --global user.name 'BumpBot' | |
git config --global user.email '[email protected]' | |
- name: update google-chrome | |
run: | | |
nix develop --command \ | |
./google-chrome/update.py --commit | |
- name: check build outputs | |
env: | |
NIXPKGS_ALLOW_UNFREE: "1" | |
run: | | |
nix flake check --impure | |
- name: push to origin | |
run: git push |