Update plugins + flake inputs. #7
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 plugins + flake inputs. | |
on: | |
schedule: | |
# Every Monday at 8am | |
- cron: "0 8 * * 1" | |
workflow_dispatch: | |
concurrency: | |
group: default | |
cancel-in-progress: true | |
permissions: | |
contents: write | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: easimon/maximize-build-space@master | |
- uses: actions/checkout@v4 | |
- uses: webfactory/ssh-agent@v0.9.0 | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- uses: cachix/install-nix-action@v26 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
extra_nix_config: | | |
accept-flake-config = true | |
- uses: cachix/cachix-action@v14 | |
with: | |
name: willruggiano | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
- run: nix run .#update | |
- run: nix build --accept-flake-config | |
- run: | | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' | |
git commit -am 'chore: 🌶️🌶️🌶️' || exit 0 | |
git push |