Skip to content

Commit 156a57f

Browse files
committed
test action
1 parent 0776702 commit 156a57f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/test-action.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: test-action
2+
on:
3+
pull_request_target:
4+
jobs:
5+
test-changed-files:
6+
name: Get Modified Files
7+
runs-on: ubuntu-latest
8+
permissions:
9+
issues: write
10+
contents: write
11+
pull-requests: write
12+
repository-projects: write
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Get Changed Files
16+
id: changed-files
17+
# pin to a specific commit to ensure stability
18+
uses: tj-actions/changed-files@c65cd883420fd2eb864698a825fc4162dd94482c
19+
with:
20+
files: source/**
21+
- name: Print modified
22+
id: print-files
23+
env:
24+
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
25+
run: |
26+
for file in $CHANGED_FILES; do
27+
echo "modified ${file}"
28+
done

0 commit comments

Comments
 (0)