Skip to content

Commit

Permalink
ci: fix revision for docs generation & add dependabot (#50)
Browse files Browse the repository at this point in the history
* ci: fix revision for docs generation

* ci: add dependabot
  • Loading branch information
getchoo authored Nov 2, 2023
1 parent 81ca008 commit 96e861b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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"
12 changes: 6 additions & 6 deletions .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 96e861b

Please sign in to comment.