Skip to content

Commit b233502

Browse files
🩹 [Patch]: Update Action-Test workflow to create and switch to a 'lint' branch for staging changes
1 parent 455bc26 commit b233502

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎.github/workflows/Action-Test.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ jobs:
5353
LogGroup 'List files' {
5454
Get-ChildItem -Recurse -File | Select-Object -ExpandProperty FullName | Sort-Object
5555
}
56+
LogGroup 'Create lint branch' {
57+
git branch -D lint -f 2>$null
58+
git checkout -b lint
59+
}
5660
LogGroup 'Commit changes for linting' {
5761
git add .
5862
git commit -m 'Stage changes for linting'
@@ -65,7 +69,7 @@ jobs:
6569
uses: super-linter/super-linter/slim@7bba2eeb89d01dc9bfd93c497477a57e72c83240 # v8.2.0
6670
env:
6771
GITHUB_TOKEN: ${{ github.token }}
68-
DEFAULT_BRANCH: ${{ github.ref }}
72+
DEFAULT_BRANCH: lint
6973
VALIDATE_ALL_CODEBASE: true
7074
VALIDATE_MARKDOWN: true
7175
VALIDATE_NATURAL_LANGUAGE: true

0 commit comments

Comments
 (0)