We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c83ee48 commit 449252dCopy full SHA for 449252d
‎.github/workflows/Build-Docs.yml‎
@@ -81,7 +81,9 @@ jobs:
81
WorkingDirectory: ${{ inputs.WorkingDirectory }}
82
Script: |
83
# Rename the gitignore file to .gitignore.bak
84
- Rename-Item -Path '.gitignore' -NewName '.gitignore.bak' -Force
+ if (Test-Path -Path .gitignore) {
85
+ Rename-Item -Path '.gitignore' -NewName '.gitignore.bak' -Force
86
+ }
87
88
try {
89
# Add all changes to the repository
@@ -92,7 +94,9 @@ jobs:
92
94
}
93
95
96
# Restore the gitignore file
- Rename-Item -Path '.gitignore.bak' -NewName '.gitignore' -Force
97
+ if (Test-Path -Path .gitignore.bak) {
98
+ Rename-Item -Path '.gitignore.bak' -NewName '.gitignore' -Force
99
100
101
- name: Lint documentation
102
uses: super-linter/super-linter/slim@latest
0 commit comments