Skip to content

Commit

Permalink
🪲 [Fix]: Using local settings for linter (#26)
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
MariusStorhaug committed Apr 1, 2024
1 parent ec5c76c commit 97d4e6b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 97d4e6b

Please sign in to comment.