Skip to content

Commit 51d423c

Browse files
authored
Update files-changed.yaml
1 parent e3cbc1c commit 51d423c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/files-changed.yaml

+6-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
paths:
66
- 'specs/*'
7+
78
jobs:
89
notify:
910
runs-on: ubuntu-latest
@@ -15,12 +16,14 @@ jobs:
1516
id: changes
1617
run: |
1718
git diff-tree --no-commit-id --name-only -r ${{ github.sha }} > changed_files.txt
18-
echo "::set-output name=files::$(cat changed_files.txt)"
19+
echo "FILES=$(cat changed_files.txt)" >> $GITHUB_ENV
1920
2021
- name: Send Webhook for Each File
2122
run: |
22-
for file in $(cat changed_files.txt); do
23+
for file in $(echo $FILES); do
2324
filename=$(basename "$file")
2425
name_without_extension="${filename%.*}"
2526
curl -X POST "${{ secrets.WEBHOOK_URL }}/$name_without_extension" -d "{\"filename\":\"$name_without_extension\"}" -H "Content-Type: application/json"
26-
done
27+
done
28+
env:
29+
FILES: ${{ env.FILES }}

0 commit comments

Comments
 (0)