Update plugins + flake inputs. #31
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: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: write | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: easimon/maximize-build-space@v10 | |
with: | |
overprovision-lvm: true | |
remove-android: true | |
remove-codeql: true | |
remove-docker-images: true | |
remove-dotnet: true | |
remove-haskell: true | |
- 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: DeterminateSystems/magic-nix-cache-action@v4 | |
- uses: cachix/cachix-action@v14 | |
with: | |
name: willruggiano | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
- name: nix run .#update | |
run: | | |
git config --global user.name 'github-actions[bot]' && | |
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' && | |
nix run .#update |