Skip to content

Commit b34a753

Browse files
committed
CI: Fix indendation in GitHub actions.
1 parent 96ab81f commit b34a753

File tree

3 files changed

+55
-55
lines changed

3 files changed

+55
-55
lines changed

.github/workflows/test-git-lfs.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -46,38 +46,38 @@ jobs:
4646
if (errorType === 'subdir_gitattributes') {
4747
commentBody = `## ❌ Git LFS Check Failed
4848
49-
**Found \`.gitattributes\` file(s) in subdirectories.** Only the top-level \`.gitattributes\` should be used for LFS configuration.
49+
**Found \`.gitattributes\` file(s) in subdirectories.** Only the top-level \`.gitattributes\` should be used for LFS configuration.
5050
51-
🔗 [View workflow run logs](${runUrl})
51+
🔗 [View workflow run logs](${runUrl})
5252
53-
### Files to remove:
54-
${errorFiles.split('\n').map(f => f.trim()).filter(f => f).map(f => '- \`' + f + '\`').join('\n')}
53+
### Files to remove:
54+
${errorFiles.split('\n').map(f => f.trim()).filter(f => f).map(f => '- \`' + f + '\`').join('\n')}
5555
56-
### How to fix:
57-
\`\`\`bash
58-
git rm <path/to/.gitattributes>
59-
git commit -m "Remove subdirectory .gitattributes"
60-
\`\`\`
61-
`;
56+
### How to fix:
57+
\`\`\`bash
58+
git rm <path/to/.gitattributes>
59+
git commit -m "Remove subdirectory .gitattributes"
60+
\`\`\`
61+
`;
6262
} else if (errorType === 'not_lfs_tracked') {
6363
commentBody = `## ❌ Git LFS Check Failed
6464
65-
**The following files should be tracked by Git LFS but are not:**
65+
**The following files should be tracked by Git LFS but are not:**
6666
67-
🔗 [View workflow run logs](${runUrl})
67+
🔗 [View workflow run logs](${runUrl})
6868
69-
${errorFiles}
69+
${errorFiles}
7070
71-
### How to fix:
72-
\`\`\`bash
73-
# For each file listed above:
74-
git rm --cached <file>
75-
git add <file>
76-
git commit -m "Track file with Git LFS"
77-
\`\`\`
71+
### How to fix:
72+
\`\`\`bash
73+
# For each file listed above:
74+
git rm --cached <file>
75+
git add <file>
76+
git commit -m "Track file with Git LFS"
77+
\`\`\`
7878
79-
Make sure Git LFS is installed locally (\`git lfs install\`) before running these commands.
80-
`;
79+
Make sure Git LFS is installed locally (\`git lfs install\`) before running these commands.
80+
`;
8181
}
8282
8383
// Check if we already commented on this PR to avoid spam

.github/workflows/test-git-signatures.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -132,34 +132,34 @@ jobs:
132132
133133
const commentBody = `## ❌ Commit Signature Check Failed
134134
135-
**Found ${unsignedCount} unsigned commit(s):**
135+
**Found ${unsignedCount} unsigned commit(s):**
136136
137-
🔗 [View workflow run logs](${runUrl})
137+
🔗 [View workflow run logs](${runUrl})
138138
139-
${unsignedCommits}
139+
${unsignedCommits}
140140
141-
### All commits must be signed
141+
### All commits must be signed
142142
143-
#### How to fix:
143+
#### How to fix:
144144
145-
1. **Configure commit signing** (if not already done):
146-
\`\`\`bash
147-
# For GPG signing
148-
git config --global commit.gpgsign true
145+
1. **Configure commit signing** (if not already done):
146+
\`\`\`bash
147+
# For GPG signing
148+
git config --global commit.gpgsign true
149149
150-
# Or for SSH signing (Git 2.34+)
151-
git config --global gpg.format ssh
152-
git config --global user.signingkey ~/.ssh/id_ed25519.pub
153-
\`\`\`
150+
# Or for SSH signing (Git 2.34+)
151+
git config --global gpg.format ssh
152+
git config --global user.signingkey ~/.ssh/id_ed25519.pub
153+
\`\`\`
154154
155-
2. **Re-sign your commits:**
156-
\`\`\`bash
157-
git rebase -i origin/main --exec "git commit --amend --no-edit -S"
158-
git push --force-with-lease
159-
\`\`\`
155+
2. **Re-sign your commits:**
156+
\`\`\`bash
157+
git rebase -i origin/main --exec "git commit --amend --no-edit -S"
158+
git push --force-with-lease
159+
\`\`\`
160160
161-
📚 [GitHub documentation on signing commits](https://docs.github.com/en/authentication/managing-commit-signature-verification)
162-
`;
161+
📚 [GitHub documentation on signing commits](https://docs.github.com/en/authentication/managing-commit-signature-verification)
162+
`;
163163
164164
// Check if we already commented on this PR to avoid spam
165165
const { data: comments } = await github.rest.issues.listComments({

.github/workflows/test-links.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,25 +63,25 @@ jobs:
6363
6464
const commentBody = `## ❌ Link Check Failed
6565
66-
**Broken links were detected in this PR.**
66+
**Broken links were detected in this PR.**
6767
68-
Please check the [workflow run logs](${runUrl}) for details on which links are broken.
68+
Please check the [workflow run logs](${runUrl}) for details on which links are broken.
6969
70-
### Common fixes:
70+
### Common fixes:
7171
72-
1. **Typo in URL** - Check for spelling mistakes in the link
73-
2. **Outdated link** - The page may have moved or been deleted
74-
3. **Relative path issue** - Ensure relative links use the correct path
75-
4. **External site down** - If the external site is temporarily down, you can add it to \`brev/.lycheeignore\`
72+
1. **Typo in URL** - Check for spelling mistakes in the link
73+
2. **Outdated link** - The page may have moved or been deleted
74+
3. **Relative path issue** - Ensure relative links use the correct path
75+
4. **External site down** - If the external site is temporarily down, you can add it to \`brev/.lycheeignore\`
7676
77-
### To test links locally:
77+
### To test links locally:
7878
79-
\`\`\`bash
80-
./brev/test-links.bash .
81-
\`\`\`
79+
\`\`\`bash
80+
./brev/test-links.bash .
81+
\`\`\`
8282
83-
📚 [Lychee documentation](https://github.com/lycheeverse/lychee)
84-
`;
83+
📚 [Lychee documentation](https://github.com/lycheeverse/lychee)
84+
`;
8585
8686
// Check if we already commented on this PR to avoid spam
8787
const { data: comments } = await github.rest.issues.listComments({

0 commit comments

Comments
 (0)