ci: fix revision for docs generation & add dependabot (#50)

* ci: fix revision for docs generation

* ci: add dependabot
This commit is contained in:
seth 2023-11-02 18:09:01 +00:00 committed by GitHub
parent 81ca008137
commit 96e861b5ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 6 deletions

8
.github/dependabot.yml vendored Normal file
View file

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

View file

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