-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (44 loc) · 1.44 KB
/
update-flake-lock-zellij.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
name: update-flake-lock-zellij
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 0 * * *' # runs daily at 00:00
jobs:
lockfile:
runs-on: ubuntu-latest
environment: update
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v30
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@v8
with:
diagnostic-endpoint: ""
- name: Update flake.lock zellij input
uses: DeterminateSystems/update-flake-lock@v24
with:
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
inputs: zellij
branch: update_input_action_zellij
pr-title: "flake.lock: update zellij"
pr-labels: |
dependencies
automated
nix
# - name: setup git
# run: |
# set -xe
# git config user.name github-actions[bot]
# git config user.email 41898282+github-actions[bot]@users.noreply.github.com
# nix build .#zellij.src.outPath
# cp -r -L ./result ./vendor
# sudo chmod -R a+w ./vendor/
# nix develop --command cargo update --manifest-path ./vendor/Cargo.toml
# git add ./vendor/Cargo.lock
# git commit -m "$(date)"
# git push
# shell: bash