Simplify back to baseline
This commit is contained in:
@@ -0,0 +1,49 @@
|
|||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "7 23 * * *"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update:
|
||||||
|
runs-on: nix-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Update flake.lock
|
||||||
|
run: nix flake update
|
||||||
|
|
||||||
|
- name: Create PR if changed
|
||||||
|
env:
|
||||||
|
GITEA_TOKEN: ${{ secrets.KLAATU_TOKEN }}
|
||||||
|
GITEA_URL: https://src.thehellings.com
|
||||||
|
REPO: greg/mingw-sword-build
|
||||||
|
run: |
|
||||||
|
if git diff --quiet flake.lock; then
|
||||||
|
echo "flake.lock unchanged, nothing to do"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
BRANCH="auto/update-flake-lock-$(date +%Y%m%d)"
|
||||||
|
git config user.email "klaatu@thehellings.com"
|
||||||
|
git config user.name "klaatu"
|
||||||
|
git checkout -b "$BRANCH"
|
||||||
|
git add flake.lock
|
||||||
|
git commit -m "chore: update flake.lock $(date +%Y-%m-%d)"
|
||||||
|
|
||||||
|
# Push branch using token auth
|
||||||
|
git remote set-url origin "https://klaatu:${GITEA_TOKEN}@${GITEA_URL#https://}/${REPO}.git"
|
||||||
|
git push origin "$BRANCH"
|
||||||
|
|
||||||
|
# Create PR via Gitea API
|
||||||
|
curl -s -X POST \
|
||||||
|
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
"${GITEA_URL}/api/v1/repos/${REPO}/pulls" \
|
||||||
|
-d "{
|
||||||
|
\"title\": \"chore: update flake.lock $(date +%Y-%m-%d)\",
|
||||||
|
\"head\": \"$BRANCH\",
|
||||||
|
\"base\": \"main\",
|
||||||
|
\"body\": \"Automated weekly flake.lock update.\\n\\nGenerated by Gitea Actions.\",
|
||||||
|
\"assignees\": [\"greg\"]
|
||||||
|
}"
|
||||||
Generated
-17
@@ -1,21 +1,5 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"aarch_fix": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1753636920,
|
|
||||||
"narHash": "sha256-BZq0xc6+3OVxUE+re+Rd+5+JqmGUARxa0M1waMkscyk=",
|
|
||||||
"owner": "greg-hellings",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "54692b15811727c1cd367dbd82e6e22abd1bd057",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "greg-hellings",
|
|
||||||
"ref": "ucrt/zlib",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@@ -155,7 +139,6 @@
|
|||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"aarch_fix": "aarch_fix",
|
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"flake-root": "flake-root",
|
"flake-root": "flake-root",
|
||||||
"hooks": "hooks",
|
"hooks": "hooks",
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
flake-root.url = "github:srid/flake-root";
|
flake-root.url = "github:srid/flake-root";
|
||||||
hooks.url = "github:cachix/git-hooks.nix";
|
hooks.url = "github:cachix/git-hooks.nix";
|
||||||
aarch_fix.url = "github:greg-hellings/nixpkgs/ucrt/zlib";
|
#aarch_fix.url = "github:greg-hellings/nixpkgs/ucrt/zlib";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
perSystem =
|
perSystem =
|
||||||
{ pkgs, self', ... }@inputs':
|
{ pkgs, self', ... }@inputs':
|
||||||
let
|
let
|
||||||
arm = (import inputs.aarch_fix { inherit (inputs') system; });
|
#arm = (import inputs.aarch_fix { inherit (inputs') system; });
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
_module.args.pkgs = import inputs.nixpkgs {
|
_module.args.pkgs = import inputs.nixpkgs {
|
||||||
@@ -110,7 +110,7 @@
|
|||||||
default = tar mingwW64;
|
default = tar mingwW64;
|
||||||
x86 = tar mingwW64;
|
x86 = tar mingwW64;
|
||||||
ucrt = tar ucrt64;
|
ucrt = tar ucrt64;
|
||||||
ucrtAarch = tar arm.pkgsCross.ucrtAarch64;
|
#ucrtAarch = tar arm.pkgsCross.ucrtAarch64;
|
||||||
update = pkgs.callPackage ./update.nix { };
|
update = pkgs.callPackage ./update.nix { };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user