Skip to content

Commit 67b2b37

Browse files
authored
Update main.yml
1 parent be15a1c commit 67b2b37

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,14 @@ jobs:
7474
name: test-results
7575
path: test-results/
7676
retention-days: 2
77+
78+
- name: Report Status to Build Repo
79+
if: always()
80+
run: |
81+
conclusion=${{ job.status }}
82+
echo "Reporting automation status to build repository..."
83+
curl -X POST -H "Accept: application/vnd.github.everest-preview+json" \
84+
-H "Authorization: Bearer ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \
85+
-H "Content-Type: application/json" \
86+
--data "{\"event_type\": \"automation-${conclusion}\"}" \
87+
https://api.github.com/repos/Indra512/Test/dispatches

0 commit comments

Comments
 (0)