docker-node-red/.github/workflows/update.yaml

25 lines
624 B
YAML

name: Update flake lock
on:
schedule:
- cron: '47 3 * * *'
jobs:
build:
runs-on: nix
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
token: ${{ secrets.ADMIN_ACTIONS_TOKEN }}
fetch-depth: 0
- run: |-
git config --local --add user.email localadmin@strudelline.net
git config --local --add user.name 'Admin Actions'
git pull
nix flake update
if ! git commit -m "Flake updates for $(date)" -a;then
echo "no updates to commit"
exit 0
fi
git push