-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1015 Bytes
/
cron.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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