We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3cbc1c commit 51d423cCopy full SHA for 51d423c
.github/workflows/files-changed.yaml
@@ -4,6 +4,7 @@ on:
4
push:
5
paths:
6
- 'specs/*'
7
+
8
jobs:
9
notify:
10
runs-on: ubuntu-latest
@@ -15,12 +16,14 @@ jobs:
15
16
id: changes
17
run: |
18
git diff-tree --no-commit-id --name-only -r ${{ github.sha }} > changed_files.txt
- echo "::set-output name=files::$(cat changed_files.txt)"
19
+ echo "FILES=$(cat changed_files.txt)" >> $GITHUB_ENV
20
21
- name: Send Webhook for Each File
22
- for file in $(cat changed_files.txt); do
23
+ for file in $(echo $FILES); do
24
filename=$(basename "$file")
25
name_without_extension="${filename%.*}"
26
curl -X POST "${{ secrets.WEBHOOK_URL }}/$name_without_extension" -d "{\"filename\":\"$name_without_extension\"}" -H "Content-Type: application/json"
- done
27
+ done
28
+ env:
29
+ FILES: ${{ env.FILES }}
0 commit comments