Update sources #685
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
--- | |
name: update-sources | |
on: | |
workflow_dispatch: | |
schedule: | |
# runs every midnight | |
- cron: "0 0 * * *" | |
push: | |
branches: | |
- main | |
jobs: | |
update-sources: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v16 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: Run update script | |
run: | | |
chmod +x update.sh | |
./update.sh | |
- name: Commit changes | |
uses: EndBug/[email protected] | |
with: | |
default_author: github_actions | |
message: "Update sources" | |
add: 'sources.json' |