forked from nix-community/nh
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (21 loc) · 837 Bytes
/
nixos-search.yaml
File metadata and controls
27 lines (21 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: "Check version of nixos-search"
on:
schedule:
- cron: '0 */12 * * *'
workflow_dispatch:
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Check nixos-search version
run: |
VERSION_CONTENT=$(curl --silent "https://raw.githubusercontent.com/nixos/nixos-search/main/VERSION" | tr -d '[:space:]')
# NOTE: this number and the version number in src/search.rs have
# to be updated when nixos-search updates it's version number.
VERSION_NUMBER=44
echo "Found VERSION: $VERSION_CONTENT"
if [ "$VERSION_CONTENT" != "$VERSION_NUMBER" ]; then
echo "::error:: Expected version $VERSION_NUMBER, but found $VERSION_CONTENT"
exit 1
fi
echo "Version check passed. nixos-search version is $VERSION_NUMBER."