Skip to content

ci: init auto flake update action #1

ci: init auto flake update action

ci: init auto flake update action #1

Workflow file for this run

name: Update Flake Inputs
on:
workflow_dispatch:
schedule:
# https://crontab.guru/#0_13_*_*_wed
- cron: "0 13 * * wed"
jobs:
build:
runs-on: nix
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Flake update
run: nix flake update
- name: Set Git user
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Git commit
run: |
git add -A
if [[ `git status --porcelain` ]]; then
git commit -m "flake: update inputs"
else
echo "Inputs all up to date"
fi
- name: Create pull request
run: gh pr create -H main --title "Bot: flake update" --body "Weekly update :3"

Check failure on line 36 in .github/workflows/update.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/update.yaml

Invalid workflow file

You have an error in your yaml syntax on line 36
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}