We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49e154e commit f1cf158Copy full SHA for f1cf158
1 file changed
.github/workflows/check-commit-one-file.yml
@@ -0,0 +1,28 @@
1
+name: Check One File Commit
2
+
3
+on: [push]
4
5
+jobs:
6
+ verify-files:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - name: Checkout code
10
+ uses: actions/checkout@v4
11
12
+ - name: Check that b.txt exists
13
+ run: |
14
+ if [ ! -f "b.txt" ]; then
15
+ echo "❌ b.txt is missing."
16
+ exit 1
17
+ else
18
+ echo "✅ b.txt is present."
19
+ fi
20
21
+ - name: Check that a.txt does NOT exist
22
23
+ if [ -f "a.txt" ]; then
24
+ echo "❌ a.txt should not be present."
25
26
27
+ echo "✅ a.txt is not present."
28
0 commit comments