diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8c926c1..092a221 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,20 +5,8 @@ on: workflow_call: jobs: - build-precommit: - name: Run pre-commit hooks - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v3 - with: - submodules: true - - uses: actions/setup-python@v4 - with: - python-version: "3.11" - - uses: pre-commit/action@v3.0.0 build-mkdocs: name: Build docs using MkDocs - needs: build-precommit runs-on: ubuntu-22.04 steps: - name: Checkout with submodules diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8e24f56..1f68582 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Main +name: main on: push: @@ -7,7 +7,9 @@ on: jobs: build: + name: Build docs uses: ./.github/workflows/build.yml publish: + name: Publish docs uses: ./.github/workflows/publish.yml needs: build diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 6212167..8519c80 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -1,4 +1,4 @@ -name: Pre-commit hooks +name: Pre-commit Hooks on: workflow_dispatch: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f2f9128..3fd9bf3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,7 +6,6 @@ on: jobs: publish-githubpages: name: Publish docs to GitHub Pages - if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-22.04 steps: - name: Download Buildarr Docs from build artifacts diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 0ecb0ee..992a1eb 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -5,7 +5,9 @@ on: jobs: pre-commit: + name: Run pre-commit hooks uses: ./.github/workflows/pre-commit.yml build: + name: Build docs uses: ./.github/workflows/build.yml needs: pre-commit