Skip to content

Commit fb259bb

Browse files
committed
Adding a test workflow
1 parent eb77866 commit fb259bb

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/test.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test Workflow
2+
3+
on:
4+
push:
5+
paths:
6+
- 'test/README.md'
7+
- 'test/README.MD'
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: 📥 Checkout repository
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
19+
20+
- name: 🔎 Display triggered file changes
21+
run: |
22+
echo "Test workflow triggered by README change in test folder"
23+
echo "Commit: ${{ github.sha }}"
24+
echo "Branch: ${{ github.ref_name }}"
25+
26+
- name: 📄 Show README content
27+
run: |
28+
cat test/README.md || cat test/README.MD || echo "README not found"

test/README.MD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Test
2+
This is a test file

0 commit comments

Comments
 (0)