From ce6fefbab9b6a902e725534c91ba3aa1025e5957 Mon Sep 17 00:00:00 2001 From: dundargoc Date: Thu, 30 Nov 2023 12:05:13 +0100 Subject: ci: create setup action This deduplicates common operations. --- .github/workflows/api-docs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.github/workflows/api-docs.yml') diff --git a/.github/workflows/api-docs.yml b/.github/workflows/api-docs.yml index 6f8fe107d2..181e3a1a41 100644 --- a/.github/workflows/api-docs.yml +++ b/.github/workflows/api-docs.yml @@ -18,11 +18,11 @@ jobs: pull-requests: write steps: - uses: actions/checkout@v4 + - uses: ./.github/actions/setup + - name: Install dependencies run: | - ./.github/scripts/install_deps.sh sudo apt-get install -y doxygen python3-msgpack - - uses: ./.github/actions/cache - name: Generate docs run: | -- cgit From dd81e1e3345b91c4cb4653b697c1054526f6b924 Mon Sep 17 00:00:00 2001 From: dundargoc Date: Sun, 12 Nov 2023 21:40:24 +0100 Subject: ci: refactor CI files Mostly rename file and variable names to be more consistent. This makes it easier to locate them in the "Actions" tab on github. --- .github/workflows/api-docs.yml | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 .github/workflows/api-docs.yml (limited to '.github/workflows/api-docs.yml') diff --git a/.github/workflows/api-docs.yml b/.github/workflows/api-docs.yml deleted file mode 100644 index 181e3a1a41..0000000000 --- a/.github/workflows/api-docs.yml +++ /dev/null @@ -1,34 +0,0 @@ -# Check if any PR needs to run the autogenerate script -name: Autogenerate API docs and types -on: - pull_request: - types: [opened, synchronize, reopened, ready_for_review] - paths: - - 'src/nvim/api/*.[ch]' - - 'src/nvim/eval.lua' - - 'runtime/lua/**.lua' - - 'runtime/doc/**' - -jobs: - regen-api-docs-and-types: - runs-on: ubuntu-latest - if: github.event.pull_request.draft == false - permissions: - contents: write - pull-requests: write - steps: - - uses: actions/checkout@v4 - - uses: ./.github/actions/setup - - - name: Install dependencies - run: | - sudo apt-get install -y doxygen python3-msgpack - - - name: Generate docs - run: | - make doc - if [ -n "$(git status --porcelain)" ]; then - echo "::error::Job failed, run 'make doc' and commit your doc changes." - echo "::error::The doc generation produces the following changes:" - git diff --color --exit-code - fi -- cgit