mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 08:53:56 -05:00
testing github actions
This commit is contained in:
parent
595f576277
commit
deb189bf03
1 changed files with 41 additions and 26 deletions
67
.github/workflows/flake-update.yml
vendored
67
.github/workflows/flake-update.yml
vendored
|
|
@ -1,26 +1,41 @@
|
||||||
name: flake-update
|
{
|
||||||
on:
|
"name": "flake-update",
|
||||||
workflow_dispatch: # allows manual triggering
|
"on": {
|
||||||
schedule:
|
"workflow_dispatch": null,
|
||||||
- cron: '0 1 * * *' # runs daily at 01:00
|
"schedule": [
|
||||||
|
{
|
||||||
jobs:
|
"cron": "0 1 * * *"
|
||||||
lockfile:
|
}
|
||||||
runs-on: ubuntu-latest
|
]
|
||||||
steps:
|
},
|
||||||
- name: checkout
|
"jobs": {
|
||||||
uses: actions/checkout@v3.5.3
|
"lockfile": {
|
||||||
- name: install
|
"runs-on": "ubuntu-latest",
|
||||||
uses: DeterminateSystems/nix-installer-action@v4
|
"steps": [
|
||||||
- name: update
|
{
|
||||||
uses: DeterminateSystems/update-flake-lock@v19
|
"name": "checkout",
|
||||||
with:
|
"uses": "actions/checkout@v3.5.3"
|
||||||
pr-title: "Update flake.lock" # Title of PR to be created
|
},
|
||||||
pr-labels: | # Labels to be set on the PR
|
{
|
||||||
dependencies
|
"name": "install",
|
||||||
automated
|
"uses": "DeterminateSystems/nix-installer-action@v4"
|
||||||
- name: merge PR
|
},
|
||||||
run: |
|
{
|
||||||
gh pr merge ${{ steps.update.outputs.pull-request-number }} --squash --delete-branch
|
"name": "update",
|
||||||
env:
|
"uses": "DeterminateSystems/update-flake-lock@v19",
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
"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 }}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue