ci: fix revision for docs generation & add dependabot (#50)
* ci: fix revision for docs generation * ci: add dependabot
This commit is contained in:
parent
81ca008137
commit
96e861b5ab
2 changed files with 14 additions and 6 deletions
8
.github/dependabot.yml
vendored
Normal file
8
.github/dependabot.yml
vendored
Normal 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"
|
12
.github/workflows/update-docs.yml
vendored
12
.github/workflows/update-docs.yml
vendored
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue