From 96e861b5ab6856f5c630995a0b5365c710f5abf3 Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 2 Nov 2023 18:09:01 +0000 Subject: [PATCH] ci: fix revision for docs generation & add dependabot (#50) * ci: fix revision for docs generation * ci: add dependabot --- .github/dependabot.yml | 8 ++++++++ .github/workflows/update-docs.yml | 12 ++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..1d662ce --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" + commit-message: + prefix: "actions" diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml index 2b474ba..df0e437 100644 --- a/.github/workflows/update-docs.yml +++ b/.github/workflows/update-docs.yml @@ -20,20 +20,20 @@ jobs: package: ["nixos", "home-manager"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: cachix/install-nix-action@v22 + - name: Get short revision + id: rev + run: + echo "rev=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT" + - name: Build doc run: nix build .#${{ matrix.package }}-doc - name: Update doc run: cat result > docs/${{ matrix.package }}-options.md - - name: Get short revision - id: rev - run: - echo "rev=$(git rev parse --short HEAD)" >> "$GITHUB_OUTPUT" - - name: Commit changes uses: EndBug/add-and-commit@v9 with: