Compare commits
2 Commits
bab4b3ff8e
...
ddf305e5d5
| Author | SHA1 | Date | |
|---|---|---|---|
| ddf305e5d5 | |||
| e5da2c3099 |
@@ -28,28 +28,16 @@ jobs:
|
|||||||
git config user.email "gitea-runner@neet.dev"
|
git config user.email "gitea-runner@neet.dev"
|
||||||
|
|
||||||
- name: Update flake inputs
|
- name: Update flake inputs
|
||||||
id: update
|
run: nix flake update --commit-lock-file
|
||||||
run: |
|
|
||||||
nix flake update
|
|
||||||
if git diff --quiet flake.lock; then
|
|
||||||
echo "No changes to flake.lock, nothing to do"
|
|
||||||
echo "changed=false" >> "$GITHUB_OUTPUT"
|
|
||||||
else
|
|
||||||
git add flake.lock
|
|
||||||
git commit -m "flake.lock: update inputs"
|
|
||||||
echo "changed=true" >> "$GITHUB_OUTPUT"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Build and cache
|
- name: Build and cache
|
||||||
if: steps.update.outputs.changed == 'true'
|
|
||||||
run: bash .gitea/scripts/build-and-cache.sh
|
run: bash .gitea/scripts/build-and-cache.sh
|
||||||
|
|
||||||
- name: Push updated lockfile
|
- name: Push updated lockfile
|
||||||
if: steps.update.outputs.changed == 'true'
|
|
||||||
run: git push
|
run: git push
|
||||||
|
|
||||||
- name: Notify on failure
|
- name: Notify on failure
|
||||||
if: failure() && steps.update.outputs.changed == 'true'
|
if: failure()
|
||||||
run: |
|
run: |
|
||||||
curl -s \
|
curl -s \
|
||||||
-H "Authorization: Bearer ${{ secrets.NTFY_TOKEN }}" \
|
-H "Authorization: Bearer ${{ secrets.NTFY_TOKEN }}" \
|
||||||
|
|||||||
@@ -20,14 +20,3 @@ jobs:
|
|||||||
|
|
||||||
- name: Build and cache
|
- name: Build and cache
|
||||||
run: bash .gitea/scripts/build-and-cache.sh
|
run: bash .gitea/scripts/build-and-cache.sh
|
||||||
|
|
||||||
- name: Notify on failure
|
|
||||||
if: failure()
|
|
||||||
run: |
|
|
||||||
curl -s \
|
|
||||||
-H "Authorization: Bearer ${{ secrets.NTFY_TOKEN }}" \
|
|
||||||
-H "Title: Flake check failed" \
|
|
||||||
-H "Priority: high" \
|
|
||||||
-H "Tags: warning" \
|
|
||||||
-d "Check failed for ${{ gitea.ref_name }}. Check: ${{ gitea.server_url }}/${{ gitea.repository }}/actions/runs/${{ gitea.run_number }}" \
|
|
||||||
https://ntfy.neet.dev/nix-flake-updates
|
|
||||||
|
|||||||
18
flake.lock
generated
18
flake.lock
generated
@@ -228,11 +228,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771756436,
|
"lastModified": 1771683283,
|
||||||
"narHash": "sha256-Tl2I0YXdhSTufGqAaD1ySh8x+cvVsEI1mJyJg12lxhI=",
|
"narHash": "sha256-WxAEkAbo8dP7qiyPM6VN4ZGAxfuBVlNBNPkrqkrXVEc=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "5bd3589390b431a63072868a90c0f24771ff4cbb",
|
"rev": "c6ed3eab64d23520bcbb858aa53fe2b533725d4a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -250,11 +250,11 @@
|
|||||||
"spectrum": "spectrum"
|
"spectrum": "spectrum"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771712688,
|
"lastModified": 1771365290,
|
||||||
"narHash": "sha256-Pf4CaRoOLQV02m2POPA+0EWvb3gVdpaiS0hNNVZhO3c=",
|
"narHash": "sha256-1XJOslVyF7yzf6yd/yl1VjGLywsbtwmQh3X1LuJcLI4=",
|
||||||
"owner": "astro",
|
"owner": "astro",
|
||||||
"repo": "microvm.nix",
|
"repo": "microvm.nix",
|
||||||
"rev": "a3abc020a3d8e624e145f4144ed40702f788ea32",
|
"rev": "789c90b164b55b4379e7a94af8b9c01489024c18",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -270,11 +270,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771734689,
|
"lastModified": 1771130777,
|
||||||
"narHash": "sha256-/phvMgr1yutyAMjKnZlxkVplzxHiz60i4rc+gKzpwhg=",
|
"narHash": "sha256-UIKOwG0D9XVIJfNWg6+gENAvQP+7LO46eO0Jpe+ItJ0=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "nix-index-database",
|
"repo": "nix-index-database",
|
||||||
"rev": "8f590b832326ab9699444f3a48240595954a4b10",
|
"rev": "efec7aaad8d43f8e5194df46a007456093c40f88",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
Reference in New Issue
Block a user