Experiment commented out (Hercules CI doesn't support impure derivations yet)
This commit is contained in:
parent
83df3e21a5
commit
0ac02a6989
3 changed files with 1 additions and 59 deletions
47
.github/workflows/update.yaml
vendored
47
.github/workflows/update.yaml
vendored
|
@ -1,47 +0,0 @@
|
||||||
name: update-flake-lock
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch: # allows manual triggering
|
|
||||||
schedule:
|
|
||||||
- cron: '0 15 * * *' # running daily at 00:15 AM
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
update-lockfile:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- uses: cachix/install-nix-action@v20
|
|
||||||
with:
|
|
||||||
extra_nix_config: |
|
|
||||||
accept-flake-config = true
|
|
||||||
|
|
||||||
- uses: cachix/cachix-action@v12
|
|
||||||
with:
|
|
||||||
name: aciceri-emacs
|
|
||||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
||||||
|
|
||||||
- name: Update flake.lock
|
|
||||||
uses: aciceri/update-flake-lock@main
|
|
||||||
with:
|
|
||||||
custom-logic: |
|
|
||||||
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
|
|
||||||
echo "DIFF_CLOSURES<<$EOF" >> $GITHUB_ENV
|
|
||||||
nix run .#diff-closures | sed 's/^ *//g' >> $GITHUB_ENV
|
|
||||||
echo "$EOF" >> $GITHUB_ENV
|
|
||||||
pr-title: "Automatic `flake.lock` update"
|
|
||||||
pr-body: |
|
|
||||||
# Automatic update
|
|
||||||
## Inputs updated
|
|
||||||
```
|
|
||||||
{{ env.GIT_COMMIT_MESSAGE }}
|
|
||||||
```
|
|
||||||
## Closures diff
|
|
||||||
```
|
|
||||||
{{ env.DIFF_CLOSURES }}
|
|
||||||
```
|
|
||||||
pr-labels: |
|
|
||||||
flake-inputs
|
|
||||||
automatic
|
|
||||||
token: ${{ secrets.PR_UPDATE_FLAKE_TOKEN }} # to open the PR using my GitHub account, needed to trigger the `build` workflow
|
|
|
@ -16,16 +16,5 @@
|
||||||
hour = 13;
|
hour = 13;
|
||||||
dayOfWeek = ["Mon" "Tue" "Wed" "Thu" "Fri" "Sat" "Sun"];
|
dayOfWeek = ["Mon" "Tue" "Wed" "Thu" "Fri" "Sat" "Sun"];
|
||||||
};
|
};
|
||||||
pullRequestBody = ''
|
|
||||||
Update `flake.lock`. See the commit message(s) for details.
|
|
||||||
|
|
||||||
You may reset this branch by deleting it and re-running the update job. xs
|
|
||||||
|
|
||||||
git push origin :${config.hercules-ci.flake-update.updateBranch}
|
|
||||||
|
|
||||||
```
|
|
||||||
${builtins.readFile config.packages.x86_64-linux.diff-closures}
|
|
||||||
```
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
./packages
|
./packages
|
||||||
./hmModules
|
./hmModules
|
||||||
./formatter
|
./formatter
|
||||||
./diff-closures
|
# ./diff-closures
|
||||||
./checks
|
./checks
|
||||||
./ci
|
./ci
|
||||||
];
|
];
|
||||||
|
|
Reference in a new issue