evergreen #162
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: 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 |