forked from PostgREST/postgrest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add report workflow ahead of PostgREST#1812
- Loading branch information
1 parent
7db6ec9
commit 70d6f56
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Upload PR reports to GitHub Checks | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Loadtest"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
upload: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
steps: | ||
- name: Download from Artifacts | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
workflow: ${{ github.event.workflow.name }} | ||
run_id: ${{github.event.workflow_run.id }} | ||
name: loadtest.md | ||
path: artifacts | ||
- name: Upload to GitHub Checks | ||
uses: LouisBrunner/checks-action@v1.2.0 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
name: Loadtest Results | ||
conclusion: neutral | ||
output: | | ||
{"summary":""} | ||
output_text_description_file: artifacts/loadtest.md |