diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..d202a332 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + # Check for updates to GitHub Actions every week + interval: "weekly" diff --git a/.github/workflows/flake-check.yml b/.github/workflows/flake-check.yml new file mode 100644 index 00000000..ce751f8c --- /dev/null +++ b/.github/workflows/flake-check.yml @@ -0,0 +1,21 @@ +name: Flake Check + +on: + push: + branches: + - master + schedule: + - cron: "30 12 * * *" + workflow_dispatch: + +jobs: + flake-checker: + name: Flake Checker + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: DeterminateSystems/nix-installer-action@v4 + - uses: DeterminateSystems/magic-nix-cache-action@v2 + - uses: DeterminateSystems/flake-checker-action@v5 diff --git a/.github/workflows/flake-update.yml b/.github/workflows/flake-update.yml new file mode 100644 index 00000000..ef778375 --- /dev/null +++ b/.github/workflows/flake-update.yml @@ -0,0 +1,21 @@ +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: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@v1 + - name: Update flake.lock + uses: DeterminateSystems/update-flake-lock@vX + with: + pr-title: "chore: Update flake.lock" # Title of PR to be created + pr-labels: | # Labels to be set on the PR + dependencies + automated