sonarcloud: fix hotspots by explicitly mentioning secrets #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Create Mkdocs documentation | ||
|
Check failure on line 1 in .github/workflows/mkdocs_documentation.yml
|
||
| 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 | ||