Skip to content

evergreen

evergreen #189

Workflow file for this run

name: evergreen
on:
schedule:
- cron: '30 09 * * *'
workflow_dispatch:
concurrency: evergreen
permissions:
contents: write
jobs:
evergreen:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v4
with:
persist-credentials: 'true'
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Update nix flake
run: nix flake update
- name: Push changes
run: |
if [[ `git status flake.lock --porcelain` ]]; then
git config user.name github-actions
git config user.email [email protected]
git add flake.lock
git commit -m "bot: nix flake update"
git push
else
echo "flake.lock is not changed..."
fi