update-flake-lock #1
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-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 |