Skip to content

Commit 97d4e6b

Browse files
🪲 [Fix]: Using local settings for linter (#26)
## Description - Fix for using local repo settings for linter (access to `.github/linters/*`). ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [x] 🪲 [Fix] - [ ] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent ec5c76c commit 97d4e6b

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/workflow.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -502,18 +502,19 @@ jobs:
502502
needs: BuildModule
503503
runs-on: ubuntu-latest
504504
steps:
505-
- name: Init empty repository
506-
shell: pwsh
507-
run: |
508-
git init --initial-branch=main
505+
- name: Checkout Code
506+
uses: actions/checkout@v4
507+
with:
508+
fetch-depth: 0
509+
ref: ${{ github.event.pull_request.head.sha }}
509510

510511
- name: Download docs artifact
511512
uses: actions/download-artifact@v4
512513
with:
513514
name: docs
515+
path: ${{ github.workspace }}
514516

515517
- name: Commit docs for linting
516-
id: commit-docs
517518
shell: pwsh
518519
run: |
519520
git config --global user.name "Github Actions"
@@ -526,9 +527,10 @@ jobs:
526527
env:
527528
DEFAULT_BRANCH: main
528529
DEFAULT_WORKSPACE: ${{ github.workspace }}
529-
GITHUB_TOKEN: ${{ github.token }}
530-
RUN_LOCAL: true # Running "locally" to avoid issues with GITHUB_SHA issue of a squash merge.
531530
ENABLE_GITHUB_ACTIONS_GROUP_TITLE: true
531+
GITHUB_TOKEN: ${{ github.token }}
532+
RUN_LOCAL: true
533+
VALIDATE_ALL_CODEBASE: false
532534

533535
PublishModule:
534536
name: Publish module

0 commit comments

Comments
 (0)