@@ -46,32 +46,33 @@ jobs:
4646 WorkingDirectory : tests/srcTestRepo
4747 ShowSummaryOnSuccess : true
4848
49- # - name: Get changes
50- # uses: PSModule/GitHub-Script@v1
51- # id: get-lint-branch
52- # with:
53- # Script: |
54- # LogGroup 'List files' {
55- # Get-ChildItem -Recurse -File | Select-Object -ExpandProperty FullName | Sort-Object
56- # }
57- # $random = Get-Random -Minimum 1000 -Maximum 9999
58- # $branch = "lint-$random"
59- # Set-GitHubOutput -Name lintBranch -Value $branch
60- # LogGroup "Create $branch branch" {
61- # git checkout -b $branch
62- # }
63- # LogGroup 'Commit changes for linting' {
64- # git add .
65- # git commit -m 'Stage changes for linting'
66- # }
67- # LogGroup 'Get changes' {
68- # git status
69- # }
49+ - name : Get changes
50+ uses : PSModule/GitHub-Script@v1
51+ id : get-lint-branch
52+ with :
53+ Script : |
54+ LogGroup 'List files' {
55+ Get-ChildItem -Recurse -File | Select-Object -ExpandProperty FullName | Sort-Object
56+ }
57+ $random = Get-Random -Minimum 1000 -Maximum 9999
58+ $branch = "lint-$random"
59+ Set-GitHubOutput -Name lintBranch -Value $branch
60+ LogGroup "Create $branch branch" {
61+ git checkout -b $branch
62+ }
63+ LogGroup 'Commit changes for linting' {
64+ git add .
65+ git commit -m 'Stage changes for linting'
66+ }
67+ LogGroup 'Get changes' {
68+ git status
69+ }
7070
7171 - name : Lint documentation
7272 uses : super-linter/super-linter/slim@7bba2eeb89d01dc9bfd93c497477a57e72c83240 # v8.2.0
7373 env :
7474 GITHUB_TOKEN : ${{ github.token }}
75+ DEFAULT_BRANCH : ${{ fromJson(steps.get-lint-branch.outputs.result).lintBranch }}
7576 VALIDATE_MARKDOWN : true
7677 VALIDATE_NATURAL_LANGUAGE : true
7778 VALIDATE_ALL_CODEBASE : true
0 commit comments