Skip to content

sonarcloud: fix hotspots by explicitly mentioning secrets #2

sonarcloud: fix hotspots by explicitly mentioning secrets

sonarcloud: fix hotspots by explicitly mentioning secrets #2

name: Create Mkdocs documentation

Check failure on line 1 in .github/workflows/mkdocs_documentation.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/mkdocs_documentation.yml

Invalid workflow file

(Line: 13, Col: 9): Unexpected value '', (Line: 14, Col: 9): Unrecognized function: 'lower'. Located at position 1 within expression: lower(inputs.project_version) == upper(inputs.project_version), (Line: 15, Col: 5): 'env' is already defined
on:
workflow_call:
inputs:
project_version:
required: true
type: string
jobs:
create-docs:
runs-on: ubuntu-latest
env:
if: ${{ lower(inputs.project_version) == upper(inputs.project_version) }}
env:
VERSION: ${{ inputs.project_version }}
steps:
- name: checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.VERSION_DECOIMPACT }}
fetch-depth: 0
- name: install python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.4.2
- name: Install Dependencies
run: poetry install
- name: Create new version of mkdocs and publish
run: |
git config user.name github-actions
git config user.email github-actions@github.com
poetry run mike deploy --push --update-aliases "$VERSION" latest
poetry run mike set-default --push latest