diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 6bc58d4..61c1149 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -502,18 +502,19 @@ jobs: needs: BuildModule runs-on: ubuntu-latest steps: - - name: Init empty repository - shell: pwsh - run: | - git init --initial-branch=main + - name: Checkout Code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} - name: Download docs artifact uses: actions/download-artifact@v4 with: name: docs + path: ${{ github.workspace }} - name: Commit docs for linting - id: commit-docs shell: pwsh run: | git config --global user.name "Github Actions" @@ -526,9 +527,10 @@ jobs: 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 + GITHUB_TOKEN: ${{ github.token }} + RUN_LOCAL: true + VALIDATE_ALL_CODEBASE: false PublishModule: name: Publish module