test docs workflow

This commit is contained in:
MuneebAijaz
2024-08-06 10:52:22 +05:00
parent 3c266657b6
commit 93f8467b33
2 changed files with 38 additions and 5 deletions

View File

@@ -56,6 +56,25 @@ jobs:
check-latest: true
cache: true
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
docs:
- '.markdownlint.yaml'
- '.vale.ini'
- 'Dockerfile-docs'
- 'docs-nginx.conf'
- 'docs/**'
- 'README.md'
- 'theme_common'
- 'theme_override'
# run only if 'workflows' files were changed
- name: workflow tests
if: steps.filter.outputs.docs == 'true'
run: echo "Workflow file"
# Get highest tag and remove any suffixes with '-'
- name: Get Highest tag
id: highest_tag
@@ -63,11 +82,6 @@ jobs:
highest=$(git tag -l --sort -version:refname | head -n 1)
echo "tag=${highest%%-*}" >> $GITHUB_OUTPUT
# Get highest tag and remove any suffixes with '-'
- name: Print Highest tag
run: |
echo ${{ steps.highest_tag.outputs.tag }}
- name: Install Dependencies
run: |
make install

View File

@@ -173,6 +173,25 @@ jobs:
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
docs:
- '.markdownlint.yaml'
- '.vale.ini'
- 'Dockerfile-docs'
- 'docs-nginx.conf'
- 'docs/**'
- 'README.md'
- 'theme_common'
- 'theme_override'
# run only if 'workflows' files were changed
- name: workflow tests
if: steps.filter.outputs.docs == 'true'
run: echo "Workflow file"
##############################
## Add steps to generate required artifacts for a release here(helm chart, operator manifest etc.)
##############################