emacs-overlay/.github/workflows/ci.yml
Matt Jones e09ec4720e
Run the updater every 4 hours
Co-authored-by: Kim Lindberger <kim.lindberger@gmail.com>
2021-04-07 08:59:21 -04:00

32 lines
680 B
YAML

name: Update emacs-overlay
on:
schedule:
- cron: '0 */4 * * *'
workflow_dispatch:
jobs:
refresh-overlay:
name: Refresh inputs
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2.3.4
- name: Install Nix
uses: cachix/install-nix-action@v13
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Update inputs
run: |
./update
- name: Push commit with updated inputs
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git commit -am "Updated repos/melpa"
git pull --rebase
git push