Skip to content

Commit

Permalink
run import-channel every hour for last 3 channels
Browse files Browse the repository at this point in the history
  • Loading branch information
garbas committed May 22, 2020
1 parent c45a158 commit 2939917
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/cron.yml
@@ -0,0 +1,26 @@
name: "Hourly Build & Deploy to Netlify"
on:
schedule:
- cron: '0 * * * *'
jobs:
hourly-build-and-deploy:
runs-on: ubuntu-latest
strategy:
matrix:
channel:
- nixos-unstable
- nixos-20.03
- nixos-19.09
fail-fast: true
steps:
- name: Checking out the repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Installing Nix
uses: cachix/install-nix-action@v8
- name: Import ${{ matrix.channel }} channel
run: |
cd scripts/
./import-channel --es-url ${{ secrets.ELASTICSEARCH_URL }} --channel ${{ matrix.channel }} -vvv
if: github.repository == 'NixOS/nixos-homepage'

0 comments on commit 2939917

Please sign in to comment.