From 30c0f5be0bd4be430900f433e50543f40539164e Mon Sep 17 00:00:00 2001 From: Karl Johan Grahn <6355577+karl-johan-grahn@users.noreply.github.com> Date: Sat, 27 Apr 2024 23:06:00 +0200 Subject: [PATCH] Workflow updates for paths (#651) * update * update --- .github/workflows/pull_request.yaml | 15 +++++++++++++++ .github/workflows/pull_request_docs.yaml | 3 +-- .github/workflows/push.yaml | 16 ++++++++++++---- 3 files changed, 28 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index 36e8bee..5602e8b 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -4,6 +4,15 @@ on: pull_request_target: branches: - master + paths: + - '**' + - '!.markdownlint.yaml' + - '!.vale.ini' + - '!Dockerfile-docs' + - '!docs-nginx.conf' + - '!docs/**' + - '!theme_common' + - '!theme_override' env: DOCKER_FILE_PATH: Dockerfile @@ -13,6 +22,12 @@ env: REGISTRY: ghcr.io jobs: + qa: + uses: stakater/.github/.github/workflows/pull_request_doc_qa.yaml@v0.0.73 + with: + MD_CONFIG: .github/md_config.json + DOC_SRC: README.md + MD_LINT_CONFIG: .markdownlint.yaml build: runs-on: ubuntu-latest name: Build diff --git a/.github/workflows/pull_request_docs.yaml b/.github/workflows/pull_request_docs.yaml index f6a84f6..78b474d 100644 --- a/.github/workflows/pull_request_docs.yaml +++ b/.github/workflows/pull_request_docs.yaml @@ -10,7 +10,6 @@ on: - 'Dockerfile-docs' - 'docs-nginx.conf' - 'docs/**' - - 'README.md' - 'theme_common' - 'theme_override' @@ -19,7 +18,7 @@ jobs: uses: stakater/.github/.github/workflows/pull_request_doc_qa.yaml@v0.0.73 with: MD_CONFIG: .github/md_config.json - DOC_SRC: README.md docs + DOC_SRC: docs MD_LINT_CONFIG: .markdownlint.yaml build: uses: stakater/.github/.github/workflows/pull_request_container_build.yaml@v0.0.73 diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 2699898..82f32f4 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -4,6 +4,15 @@ on: push: branches: - master + paths: + - '**' + - '!.markdownlint.yaml' + - '!.vale.ini' + - '!Dockerfile-docs' + - '!docs-nginx.conf' + - '!docs/**' + - '!theme_common' + - '!theme_override' env: DOCKER_FILE_PATH: Dockerfile @@ -23,7 +32,7 @@ jobs: - name: Check out code uses: actions/checkout@v4 with: - token: ${{ secrets.STAKATER_GITHUB_TOKEN }} + token: ${{ secrets.STAKATER_GITHUB_TOKEN }} fetch-depth: 0 # otherwise, you will fail to push refs to dest repo # Setting up helm binary @@ -31,14 +40,14 @@ jobs: uses: azure/setup-helm@v4 with: version: v3.11.3 - + - name: Set up Go uses: actions/setup-go@v5 with: go-version-file: 'go.mod' check-latest: true cache: true - + - name: Install Dependencies run: | make install @@ -233,7 +242,6 @@ jobs: commit_username: stakater-user commit_email: stakater@gmail.com - # Commit back changes - name: Log info about `.git` directory permissions run: |