6.NUR/.github/workflows/update.yml
dependabot[bot] 97b9ff5c92
Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-07 07:03:36 +00:00

42 lines
1.2 KiB
YAML

name: "Test"
on:
workflow_dispatch:
schedule:
# chosen by fair dice rolling
- cron: '05 4 * * *'
push:
branches:
- master
jobs:
update_nur:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- uses: cachix/install-nix-action@v16
with:
nix_path: nixpkgs=channel:nixos-unstable
# nix 2.6 breaks restrict-eval, when using the NIX_PATH
# see https://github.com/NixOS/nix/issues/5980
install_url: https://releases.nixos.org/nix/nix-2.5.1/install
extra_nix_config: |
experimental-features = nix-command flakes
- name: update nur / nur-combined
run: ./ci/update-nur.sh
env:
API_TOKEN_GITHUB: '${{ secrets.API_TOKEN_GITHUB }}'
update_search:
runs-on: ubuntu-latest
needs: update_nur
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v16
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
experimental-features = nix-command flakes
- name: update nur-search/data/packages.json
run: ./ci/update-nur-search.sh
env:
API_TOKEN_GITHUB: '${{ secrets.API_TOKEN_GITHUB }}'