Skip to content

Periodic Mirror

Periodic Mirror #5212

Workflow file for this run

name: "Periodic Mirror"
on:
schedule:
- cron: '0 */6 * * *'
push:
branches:
- main
workflow_dispatch:
jobs:
hourly-mirror:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Checking out the repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Installing Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Enable magic Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Update config
run: ./mirror.sh
- name: Commit the files
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'Update the configuration mirror.'
branch: 'main'
file_pattern: "config/*"
commit_user_name: bot
commit_user_email: [email protected]
commit_author: bot <[email protected]>
if: github.repository == 'DeterminateSystems/hydra-nixos-org-configuration'
continue-on-error: true