-
Notifications
You must be signed in to change notification settings - Fork 1
80 lines (80 loc) · 2.66 KB
/
versioning.yml
File metadata and controls
80 lines (80 loc) · 2.66 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Update depended packages
on:
pull_request:
schedule:
- cron: "0 12 * * *"
workflow_dispatch:
jobs:
stablearhtns:
name: Check for broken evolutions
runs-on: tim
permissions:
contents: write
steps:
- name: Checkout this repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: true
- name: Configure git credentials
if: github.event_name != 'pull_request'
run: |
git config user.name '@theorderingmachine'
git config user.email 'tom@deorr.co'
git remote set-url origin git@github.com:zimeg/.DOTFILES.git
- name: Reflect existing Nix
run: |
nix --version
fastfetch
- name: Update to the latest
if: github.event_name != 'pull_request'
run: |
nix flake update
- name: Save the flake locks
if: github.event_name != 'pull_request'
run: |
git rev-parse --verify --quiet origin/update >/dev/null &&
[ "$(git rev-list --count origin/main..origin/update 2>/dev/null)" -ne 1 ] &&
exit 1
git switch --force-create update origin/main
git commit --all --message "chore(deps): automatic version bump to the most recent packages"
git push -f origin update
- name: Confirm darwin server builds
run: |
nix build .#darwinConfigurations.eztim25.local.system
- name: Confirm darwin laptop builds
run: |
nix build .#darwinConfigurations.ezmbp24.local.system
- name: Confirm darwin workstation builds
run: |
nix build .#darwinConfigurations.edenzim-ltmbn8v.internal.salesforce.com.system
updateronimo:
name: Snapshot upstream releases
needs: stablearhtns
runs-on: tom
permissions:
contents: write
steps:
- name: Checkout the changes
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: true
ref: ${{ github.event.pull_request.head.ref || 'update' }}
- name: Reflect existing Nix
run: |
uname -a | grep NixOS
fastfetch
- name: Write remembered commit
run: |
cat flake.lock
- name: Insure nixos builds
run: |
nix build .#nixosConfigurations.tom.config.system.build.toplevel
- name: Save changed version
if: github.event_name != 'pull_request'
run: |
git checkout main
git merge update
git push -u origin main
git push origin --delete update