Skip to content

update-flake-lock

update-flake-lock #48

---
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

View workflow run for this annotation

GitHub Actions / update-flake-lock

Invalid workflow file

The workflow is not valid. .github/workflows/flake-lock-update.yml (Line: 10, Col: 9): Unexpected symbol: '"refs/head/main"'. Located at position 15 within expression: github.ref == "refs/head/main"
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