flake #35
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: flake | |
| "on": | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 8 * * 1" | |
| permissions: | |
| contents: write | |
| jobs: | |
| flake: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source | |
| id: source | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GH_TOKEN }} | |
| - name: Install nix | |
| id: nix | |
| uses: cachix/install-nix-action@v31 | |
| - name: Update flake | |
| id: flake | |
| run: nix flake update | |
| - name: Source rebase | |
| id: rebase | |
| run: git pull --autostash --rebase | |
| - name: Commit changes | |
| uses: EndBug/add-and-commit@v9 | |
| with: | |
| author_name: Denis Gukov | |
| author_email: denguk@gmail.com | |
| add: flake.lock | |
| message: "chore(flake): updated lockfile [skip ci]" | |
| push: true | |
| commit: --signoff | |
| ... |