hosts file #30973
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: hosts file | |
on: | |
push: | |
schedule: | |
- cron: '0 * * * *' | |
jobs: | |
hosts: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: master | |
fetch-depth: 0 | |
- uses: cachix/install-nix-action@v26 | |
with: | |
nix_path: nixpkgs=https://github.com/eadwu/nixpkgs/archive/develop.tar.gz | |
extra_nix_config: | | |
experimental-features = nix-command flakes | |
- name: generate hosts file | |
run: | | |
nix-shell -p nixVersions.latest --run 'nix build --out-link ./hosts-drv \ | |
.#nixosConfigurations.hosts.config._internal.eadwu.flakes.custom.hosts' | |
nix-shell -p ripgrep --run 'rg '^0.0.0.0' "$(readlink -f ./hosts-drv)" > hosts' | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: hosts | |
retention-days: 1 | |
path: | | |
hosts |