diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index a9c7c1c9..52524c1c 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -134,10 +134,10 @@ jobs: needs: BuildModule runs-on: ubuntu-latest steps: - - name: Checkout Code - uses: actions/checkout@v4 - with: - fetch-depth: 0 + - name: Init empty repository + shell: pwsh + run: | + git init --initial-branch=main - name: Download docs artifact uses: actions/download-artifact@v4 @@ -145,6 +145,8 @@ jobs: name: docs - name: Commit docs for linting + id: commit-docs + shell: pwsh run: | git config --global user.name "Github Actions" git config --global user.email "github-actions[bot]@users.noreply.github.com" @@ -154,7 +156,11 @@ jobs: - name: Lint documentation uses: super-linter/super-linter/slim@latest env: + DEFAULT_BRANCH: main + DEFAULT_WORKSPACE: ${{ github.workspace }} GITHUB_TOKEN: ${{ github.token }} + RUN_LOCAL: true # Running "locally" to avoid issues with GITHUB_SHA issue of a squash merge. + ENABLE_GITHUB_ACTIONS_GROUP_TITLE: true PublishModule: name: Publish module