Update sources #586
This file contains hidden or 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: | |
| - cron: "0 0 * * *" | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@v18 | |
| with: | |
| nix_path: nixpkgs=channel:nixos-unstable | |
| - name: Update sources | |
| run: | | |
| chmod +x update.sh | |
| ./update.sh | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build examples | |
| run: nix build ./examples/* --override-input devkitNix . | |
| - name: Add & Commit | |
| uses: EndBug/add-and-commit@v9.1.1 | |
| with: | |
| default_author: github_actions | |
| message: "[skip ci] Update sources" |