switch back to yaml

This commit is contained in:
Gerg-L 2023-07-20 22:25:26 -04:00
parent 15516bf6ad
commit cc1ee2c7db
3 changed files with 38 additions and 65 deletions

View file

@ -1,23 +1,13 @@
{ version: 2
"version": 2, updates:
"updates": [ - package-ecosystem: github-actions
{ directory: "/"
"package-ecosystem": "github-actions", schedule:
"directory": "/", interval: daily
"schedule": { time: "04:00"
"interval": "daily", open-pull-requests-limit: 10
"time": "04:00" reviewers:
}, - Gerg-L
"open-pull-requests-limit": 10, assignees:
"reviewers": [ - Gerg-L
"Gerg-L"
],
"assignees": [
"Gerg-L"
],
"labels": [
"CI"
]
}
]
}

View file

@ -1,41 +1,24 @@
{ name: flake-update
"name": "flake-update", on:
"on": { workflow_dispatch:
"workflow_dispatch": null, schedule:
"schedule": [ - cron: '0 4 * * *'
{
"cron": "0 4 * * *" jobs:
} lockfile:
] runs-on: ubuntu-latest
}, steps:
"jobs": { - name: Checkout repository
"lockfile": { uses: actions/checkout@v3.5.3
"runs-on": "ubuntu-latest", - name: Install Nix
"steps": [ uses: DeterminateSystems/nix-installer-action@v4
{ - name: update
"name": "checkout", uses: DeterminateSystems/update-flake-lock@v19
"uses": "actions/checkout@v3.5.3" with:
}, pr-title: "Update flake.lock"
{ - name: merge
"name": "install", run: |
"uses": "DeterminateSystems/nix-installer-action@v4" gh pr merge ${{ steps.update.outputs.pull-request-number }} --squash --delete-branch
}, env:
{ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
"name": "update",
"uses": "DeterminateSystems/update-flake-lock@v19",
"with": {
"pr-title": "Update flake.lock",
"pr-labels": "CI"
}
},
{
"name": "merge",
"run": "gh pr merge ${{ steps.update.outputs.pull-request-number }} --squash --delete-branch\n",
"env": {
"GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}"
}
}
]
}
}
}

View file

@ -28,6 +28,6 @@ inputs: {
}; };
#fix for use-xdg-base-directories #fix for use-xdg-base-directories
environment.profiles = [ environment.profiles = [
"${config.environment.variables.XDG_STATE_HOME or "$HOME/.local/state"}/nix/profile" "\${XDG_STATE_HOME:-$HOME/.local/state}/nix/profile"
]; ];
} }