File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 18
18
id : changes
19
19
shell : bash
20
20
run : |
21
- files_changed=$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }} | cut -c 7- | cut -c -5 )
21
+ files_changed=$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }})
22
22
echo "Files changed: $files_changed"
23
23
echo "CHANGED_FILES=$files_changed" >> "$GITHUB_OUTPUT"
24
24
29
29
WEBHOOK : ${{ secrets.WEBHOOK_URL }}
30
30
run : |
31
31
echo "Processing webhooks for..."
32
- echo $CHANGED_FILES
33
- for file in $CHANGED_FILES; do
32
+ echo " $CHANGED_FILES"
33
+ for file in " $CHANGED_FILES" ; do
34
34
echo "Processing file: $file"
35
- curl -i -H "Accept: application/json" -H "Content-Type:application/json" -X POST "$WEBHOOK/$file"
35
+ filename=$(basename "$file")
36
+ filename_without_ext="${filename%.*}"
37
+ echo "Completed processing of $filename_without_ext. Now sending copr webhook of package $filename_without_ext"
38
+ curl -i -H "Accept: application/json" -H "Content-Type:application/json" -X POST "$WEBHOOK/$filename_without_ext"
39
+ sleep 5
36
40
done
You can’t perform that action at this time.
0 commit comments