This repository has been archived by the owner on Nov 28, 2024. It is now read-only.
Sync channels #12
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
# Adapted from https://github.com/numtide/nixpkgs-unfree/blob/main/.github/workflows/sync.yml | |
name: Sync channels | |
on: | |
schedule: | |
- cron: "15 11 * * *" # daily | |
workflow_dispatch: # on button click | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: cachix/install-nix-action@v15 | |
- name: configure git | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
- run: nix flake update | |
- run: | | |
if [[ -n $(git status --porcelain) ]]; then | |
git commit -am "nix flake update" | |
git push origin develop | |
fi | |