diff options
author | Matthew Jones <matt@mhjones.org> | 2021-04-05 18:35:41 -0400 |
---|---|---|
committer | Matthew Jones <matt@mhjones.org> | 2021-04-05 23:00:32 -0400 |
commit | 6530e55939d2b5b87da36477de26480393c00e05 (patch) | |
tree | 4ab0aee7161eceacb18e7838c738b7805621a139 /.github | |
parent | d9530a7048f4b1c0f65825202a0ce1d111a1d39a (diff) | |
download | nixlib-6530e55939d2b5b87da36477de26480393c00e05.tar nixlib-6530e55939d2b5b87da36477de26480393c00e05.tar.gz nixlib-6530e55939d2b5b87da36477de26480393c00e05.tar.bz2 nixlib-6530e55939d2b5b87da36477de26480393c00e05.tar.lz nixlib-6530e55939d2b5b87da36477de26480393c00e05.tar.xz nixlib-6530e55939d2b5b87da36477de26480393c00e05.tar.zst nixlib-6530e55939d2b5b87da36477de26480393c00e05.zip |
Add a cron-based and manually-triggered github action to update repos/melpa
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000000..c6ac5b71c9e6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: Update emacs-overlay + +on: + schedule: + - cron: '0 0 * * *' + 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 |