Skip to content

update-flake-lock

update-flake-lock #3

name: update-flake-lock
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- uses: TornaxO7/rust-template@v1-ci-actions
- name: Update flake.lock
id: update-flake-lock
run: nix flake update
- name: Commit updated flake.lock
if: |
steps.update-flake-lock.outputs.modified == 'true' &&
github.event.pull_request.head.repo.full_name == github.repository
run: |
git config --global user.name 'Github Actions'
git config --global user.email '<>'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git commit -am "Automated formatting"
git push