diff --git a/.github/workflows/mkdocs-deploy.yml b/.github/workflows/mkdocs-deploy.yml index b44b7753..4d3e5190 100644 --- a/.github/workflows/mkdocs-deploy.yml +++ b/.github/workflows/mkdocs-deploy.yml @@ -5,21 +5,5 @@ on: workflow_dispatch: jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: 3.x - - name: Install python action for doc extraction - run: pip install -r docs/requirements.txt - - name: check mkdocs build - if: github.ref != 'refs/heads/main' - run: mkdocs build - - name: Build docs and deploy to gh-pages - if: github.ref == 'refs/heads/main' - run: | - git config user.name 'github-actions' - git config user.email '41898282+github-actions[bot]@users.noreply.github.com' - mkdocs gh-deploy --force + build-docs: + uses: cpp-linter/.github/.github/workflows/mkdocs.yml@main diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index fb8f44b3..2250d389 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -7,10 +7,5 @@ on: workflow_dispatch: jobs: - update_release_draft: - runs-on: ubuntu-latest - steps: - # Draft your next Release notes as Pull Requests are merged into the default branch - - uses: release-drafter/release-drafter@v6 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + draft-release: + uses: cpp-linter/.github/.github/workflows/release-drafter.yml@main diff --git a/.github/workflows/run-pre-commit.yml b/.github/workflows/run-pre-commit.yml index 0df19030..ecc47aa7 100644 --- a/.github/workflows/run-pre-commit.yml +++ b/.github/workflows/run-pre-commit.yml @@ -1,4 +1,4 @@ -name: Pre-commit +name: Run pre-commit on: push: @@ -6,12 +6,5 @@ on: types: opened jobs: - check-source-files: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: '3.x' - - run: python3 -m pip install pre-commit - - run: pre-commit run --all-files + pre-commit: + uses: cpp-linter/.github/.github/workflows/pre-commit.yml@main