File tree Expand file tree Collapse file tree 1 file changed +7
-24
lines changed
Expand file tree Collapse file tree 1 file changed +7
-24
lines changed Original file line number Diff line number Diff line change @@ -73,28 +73,11 @@ jobs:
7373
7474
7575
76- - name : Zip Allure results
77- if : always()
78- run : zip -r allure-results.zip allure-results
79-
80- - name : Upload Allure results to Allure Server on EC2
81- if : always()
82- run : |
83- curl -X POST "http://3.93.58.184:8080/allure-docker-service/projects/my-project/results" \
84- -H "accept: application/json" \
85- -H "Authorization: Bearer ${{ secrets.ALLURE_TOKEN }}" \
86- -H "Content-Type: multipart/form-data" \
87- -F "results=@allure-results.zip;type=application/zip"
88-
89- - name : Trigger Allure report generation
90- if : always()
91- run : |
92- curl -X GET "http://3.93.58.184:8080/allure-docker-service/projects/my-project/report" \
93- -H "Authorization: Bearer ${{ secrets.ALLURE_TOKEN }}"
94-
95- - name : Output report link
96- if : always()
97- run : |
98- echo "### ✅ [View Allure Report](http://3.93.58.184:8080/projects/my-project/latest/index.html)" >> $GITHUB_STEP_SUMMARY
99-
76+ - name : Send Results and Generate Allure Report
77+ uses : Xotabu4/send-to-allure-server-action@1
78+ if : ${{ always() }}
79+ with :
80+ allure-server-url : ' http://3.93.58.184:8080'
81+ project-id : ' my-project'
82+ results-path : ' allure-results'
10083
You can’t perform that action at this time.
0 commit comments