From e17fcad31348c91ae51bc6d387dad4fb6744ac72 Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 21 May 2024 16:37:05 -0400 Subject: [PATCH] ci: remove local docgen --- .github/workflows/update-docs.yml | 49 ------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 .github/workflows/update-docs.yml diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml deleted file mode 100644 index bf62f92a..00000000 --- a/.github/workflows/update-docs.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Update docs - -on: - push: - branches: [main] - paths: - - "modules/home-manager/**" - - "modules/nixos/**" - workflow_dispatch: - -jobs: - update: - name: Run update - runs-on: ubuntu-latest - # we only want this running on our repo - if: github.repository == 'catppuccin/nix' - - steps: - - uses: actions/checkout@v4 - with: - token: ${{ secrets.PUSH_TOKEN }} - - - name: Install Nix - uses: cachix/install-nix-action@V27 - - - name: Set Git user info - run: | - git config user.name 'github-actions[bot]' - git config user.email 'github-actions[bot]@users.noreply.github.com' - - - name: Get short revision - id: rev - run: - echo "rev=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT" - - - name: Build & update docs - run: | - for module in "nixos" "home-manager"; do - nix build --print-build-logs --show-trace ./dev#"$module"-doc - cat result > docs/"$module"-options.md - rm result - done - - - name: Commit changes - run: | - if ! git diff --color=always --exit-code; then - git commit -am "docs: update for ${{ steps.rev.outputs.rev }}" - git push - fi