From 97d4e6b3feb70eec16deef9e589cac023dd32c59 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Mon, 1 Apr 2024 13:25:13 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=B2=20[Fix]:=20Using=20local=20setting?= =?UTF-8?q?s=20for=20linter=20(#26)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description - Fix for using local repo settings for linter (access to `.github/linters/*`). ## Type of change - [ ] 📖 [Docs] - [x] 🪲 [Fix] - [ ] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas --- .github/workflows/workflow.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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