forked from CoelacanthusHex/WKD
-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (41 loc) · 1.04 KB
/
update.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
39
40
41
42
43
44
45
46
47
48
name: "Update"
on:
workflow_dispatch:
push:
branches:
- main
- master
jobs:
sync:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Setup cachix
uses: cachix/cachix-action@v15
with:
name: cryolitia
extraPullNames: nix-community
- name: Checkout
uses: actions/checkout@v4
with:
show-progress: false
- name: Setup Git
run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "[email protected]"
git show -s
- name: Update OpenPGP
run: |
make
- name: Commit change
continue-on-error: true
run: |
set +e
git add .
git status
git commit -m "openpgp: update at $(date +'%Y-%m-%dT%H:%M:%S')"
git push