update-flake-lock #48
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: | ||
schedule: | ||
- cron: '0 7 * * */2' | ||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
if: github.ref == "refs/head/main" | ||
Check failure on line 10 in .github/workflows/flake-lock-update.yml GitHub Actions / update-flake-lockInvalid workflow file
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Install Nix | ||
uses: DeterminateSystems/nix-installer-action@v9 | ||
- name: Update flake.lock | ||
shell: bash | ||
env: | ||
GIT_AUTHOR_NAME: "github-actions[bot]" | ||
GIT_AUTHOR_EMAIL: "github-actions[bot]@users.noreply.github.com" | ||
GIT_COMMITER_NAME: "github-actions[bot]" | ||
GIT_COMMITER_EMAIL: "github-actions[bot]@users.noreply.github.com" | ||
run: | | ||
nix flake update --commit-lock-file | ||
git push origin main |