Skip to content

Commit

Permalink
Workflow updates for paths (#651)
Browse files Browse the repository at this point in the history
* update

* update
  • Loading branch information
karl-johan-grahn committed Apr 27, 2024
1 parent d4b7d38 commit 30c0f5b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/pull_request.yaml
Expand Up @@ -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
Expand All @@ -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
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/pull_request_docs.yaml
Expand Up @@ -10,7 +10,6 @@ on:
- 'Dockerfile-docs'
- 'docs-nginx.conf'
- 'docs/**'
- 'README.md'
- 'theme_common'
- 'theme_override'

Expand All @@ -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
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/push.yaml
Expand Up @@ -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
Expand All @@ -23,22 +32,22 @@ 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
- name: Set up Helm
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
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 30c0f5b

Please sign in to comment.